Re: My script won't be running stably
Re: My script won't be running stably
- Subject: Re: My script won't be running stably
- From: debt <email@hidden>
- Date: Tue, 21 Mar 2017 11:28:14 -0700
On Mar 21, 2017, at 9:49 AM, Luther Fuller < email@hidden> wrote:
on playUntilComplete(mainPID)
Luther,
What is mainPID referring to and where does it come from?
Now that I think about it, you’re probably referring to the pid of this script when saved as an applet, correct? To get it to play a song as an unsaved script, I added:
tell application "System Events" set x to first process whose name is "Script Debugger" set mainPID to unix id of x end tell
Marc |
_______________________________________________
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