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: Paul Taylor <email@hidden>
- Date: Wed, 28 Jan 2009 14:05:46 +0000
Brian Christmas wrote:
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
Thats great thanks, I was thinking to actually get my program to receive
files the easiest way would be for it to monitor/poll a folder/file that
could be added to by the calling applescript, do you agree?
Paul
_______________________________________________
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