Re: multiple overlapping executions of a script
Re: multiple overlapping executions of a script
- Subject: Re: multiple overlapping executions of a script
- From: Graff <email@hidden>
- Date: Wed, 05 Nov 2003 15:12:04 -0500
On Nov 4, 2003, at 22:37:45 -0800 Walter Ian Kaye
<email@hidden> wrote:
At 04:38p +1100 11/05/2003, leo didst inscribe upon an electronic
papyrus:
hi there
i have a little script which runs for a little while. i want to
invoke it
again _during_ its first execution in a way that i have two instances
or so.
Mac OS does not support that sort of thing. You only get one instance.
If you want two, duplicate the file and run the duplicate separately.
Sure it does, it's just that the Finder doesn't do it as a matter of
course. If you use the Terminal then you can get as many instances of
an application by using the background symbol, &:
(this is all on one line)
/Applications/Chess.app/Contents/MacOS/Chess &
As you can see, you need to launch the application using the executable
buried in the .app package. This only works for Cocoa applications,
for Carbon applications you need to use the LaunchCFMApp to run the
program:
(this is all on one line)
/System/Library/Frameworks/Carbon.framework/Versions/Current/Support/
LaunchCFMApp /Applications/CarbonApp &
You can do this within an Applescript by using the "do shell script"
command:
do shell script "/Applications/Chess.app/Contents/MacOS/Chess &"
- Ken
_______________________________________________
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.