• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: My script won't be running stably
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 11:14 AM, debt <email@hidden> wrote:

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

References: 
 >My script won't be running stably (From: ILJA SHEBALIN <email@hidden>)
 >Re: My script won't be running stably (From: Luther Fuller <email@hidden>)
 >Re: My script won't be running stably (From: debt <email@hidden>)

  • Prev by Date: Re: My script won't be running stably
  • Next by Date: Re: My script won't be running stably
  • Previous by thread: Re: My script won't be running stably
  • Next by thread: Re: My script won't be running stably
  • Index(es):
    • Date
    • Thread