Skip to main content
Participant
December 5, 2006
Question

Starting shell application

  • December 5, 2006
  • 4 replies
  • 713 views
Is there a way to make a plugin run an external
application? (just start it, no need to communicate
with it).

If now from within a plugin - maybe with some hack using a script?
Does it make sense?
This topic has been closed for replies.

4 replies

Participant
December 11, 2006
Thanks Aandi,

CreateProcess did work.
I was afraid using this system() method, and was glad
to hear that CreateProcess is safe.

Bye :)
Participant
December 10, 2006
Hi xbytor and thanks for the help,

system() did work, I wonder why all the other exec functions
didn't work...

Is there a way to prevent system() from opening the shell (cmd)
window though? sorry if its a common knowledge - didn't get a chance
to use this method before.

Thanks again!
Known Participant
December 11, 2006
david_chinask@adobeforums.com wrote:
> system() did work, I wonder why all the other exec functions
> didn't work...
>
> Is there a way to prevent system() from opening the shell (cmd)
> window though?

Not that I know of. I get the same thing when making the same type of call in
other languages. It's annoying and unavoidable as far as I know. You may want to
look into Windows-specific functions. There may be something in there that does
what you want.

-X

--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
Participant
December 9, 2006
Hey!

so nice to see there are others....

I don't know what stops it ... but I tried running a
process (liek notepad) and nothing happened so
I wonder if it is possible at all.

Hope to find out a way to fix it.

Tnx
Known Participant
December 10, 2006
david_chinask@adobeforums.com wrote:
> I don't know what stops it ... but I tried running a
> process (liek notepad) and nothing happened so
> I wonder if it is possible at all.

How were you trying to run the process? Regardless of platform specific APIs,
you should be able to use system() or something from the exec() family of functions.


-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
Participant
December 9, 2006
Is there anyone in this forum???
Participating Frequently
December 9, 2006
Not many, but people do come by. Now, I'm not a Photoshop plug-in
developer, I develop Acrobat plug-ins. But I find your question
puzzling. Since plug-ins are written in C/C++, what could possibly
stop you from starting a process?

Aandi Inston