Re: How do I create a Applescript Interface for my Application
Re: How do I create a Applescript Interface for my Application
- Subject: Re: How do I create a Applescript Interface for my Application
- From: Brian Christmas <email@hidden>
- Date: Wed, 28 Jan 2009 22:38:49 +1100
On 28/01/2009, at 10:27 PM, Paul Taylor wrote:
I would like someone to be able to use applescript to send some
files to my application for processing but I have no idea how to
make my application visible to applescript, so that if the
application is already running it can send some files to it, if it
isnt running it is started and files
then sent to it. Could you point me in the right direction please ?
thanks paul
A simple.....
tell application "Finder"
activate application "Adobe Photoshop CS4"
end tell
Replace "Adobe Photoshop CS4" with the name of your app.
This starts your app if it's not running, or simply activates it if it
is already running.
You can also test the list of running processes, and only use the
activate line if the app is not in the processes.
tell application "Finder"
processes
end tell
NOTE that an apps process name might be different from it's activate
name.
Regards
Santa
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden