• 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: Solver: Play sounds via script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Solver: Play sounds via script


  • Subject: Re: Solver: Play sounds via script
  • From: Christopher Stone <email@hidden>
  • Date: Sun, 24 Mar 2013 09:16:02 -0500

On Mar 23, 2013, at 22:07, Robert Poland <email@hidden> wrote:
It occurred to me  that the version of Smile was far from new. The Migration Assistant probably installed an over three year old version. No, I didn't think to find out what version.

I installed the latest version of Smile and the afplay script works as it should.

I hope, someday, the Smile people will be more forthcoming about upgrades, among other things.
______________________________________________________________________

Hey Bob,

I would be nice if Smile did version-checking, but don't wait for them.  Write your own start-up script for Smile that does version-checking.

Here's the basics:

-------------------------------------------------------------------------------------------

set _cmd to "curl -sL -A 'Mozilla/5.0' \"http://www.satimage.fr/software/en/downloads/index.html\" \\
| perl -wlne 'if (m!(?ims)(<a href="" {print \"$1\"}';
"
set remoteSmileVersion to do shell script _cmd

tell application "Finder"
set smileApp to application file id "com.satimage.Smile" as alias
set localSmileVersion to version of smileApp
end tell

-------------------------------------------------------------------------------------------

I leave it up to you to parse the above, check the online-status of the computer, and build in a reasonable timeout.

--
Best Regards,
Chris

 _______________________________________________
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

  • Follow-Ups:
    • Re: [sul] Re: Solver: Play sounds via script
      • From: Robert Poland <email@hidden>
References: 
 >Play sounds via script (From: Robert Poland <email@hidden>)
 >Re: Play sounds via script (From: Christopher Stone <email@hidden>)
 >Re: Play sounds via script (From: Robert Poland <email@hidden>)
 >Re: Play sounds via script (From: Christopher Stone <email@hidden>)
 >Re: Play sounds via script (From: Robert Poland <email@hidden>)
 >Re: Play sounds via script (From: Christopher Stone <email@hidden>)
 >Re: Play sounds via script (From: Robert Poland <email@hidden>)
 >Re: Play sounds via script (From: Robert Poland <email@hidden>)
 >Re: Play sounds via script (From: Luther Fuller <email@hidden>)
 >Solver: Play sounds via script (From: Robert Poland <email@hidden>)

  • Prev by Date: Solver: Play sounds via script
  • Next by Date: Re: [sul] Re: Solver: Play sounds via script
  • Previous by thread: Solver: Play sounds via script
  • Next by thread: Re: [sul] Re: Solver: Play sounds via script
  • Index(es):
    • Date
    • Thread