Re: Calling a non-scriptable application
Re: Calling a non-scriptable application
- Subject: Re: Calling a non-scriptable application
- From: John Delacour <email@hidden>
- Date: Fri, 11 Oct 2002 20:37:47 +0100
- Mac-eudora-version: 5.3 alpha
At 8:00 am -0700 11/10/02, Christopher Coulon wrote:
Is it possible to activate an application that is non-scriptable? I would
like AppleScript to run the application imageJ, a freeware image analysis
application from NIH. Does anyone know if this is can be done? I am using
Jaguar on a 400 mHz G4 PowerBook.
Once Jaguar has discovered where it is, you should be able to say
tell app "imageJ" to activate
since the app does not need to be scriptable to respond to this. I
just tried opening a 1992 app on my OS9 partition, which I have not
used since installing !0.2, and the application _launched_
immediately, that is to say it "activasted in the background.
Activate ought to bring the app to the front, and will do on later
non-scriptable apps, such as SimpleText, so you are unlikely to have
any apps that don't come to the front. If by chance you do, then do
this
tell application "Finder" to open application file id "code"
where code is the creator type of the app. This will work with all
apps of any age EXCEPT, for the time being and for temporary unknown
reasons, Omniweb and Eudora and probably a few more.
On my machine, if I tell app "Script Editor" to activate, the classic
version activates, for some reason.
The are bugs in 10.2, but you will probably be lucky.
'launch' is not synonymous with 'activate' and should be used, with
caution, when you wish the app NOT to come to the front.
JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.