Re: [sul] Re: Solver: Play sounds via script
Re: [sul] Re: Solver: Play sounds via script
- Subject: Re: [sul] Re: Solver: Play sounds via script
- From: Robert Poland <email@hidden>
- Date: Sun, 24 Mar 2013 08:59:43 -0600
On Mar 24, 2013, at 8:16 AM, Christopher Stone <email@hidden> wrote:
> 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=.+?downloads.+?smile.+?build.+?</a>)!) {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
Thanks Chris,
That works fine for me but not so well for other peoples computers.
And I don't see how that relates to unpublicized updates.
Robert Poland - Fort Collins, CO
_______________________________________________
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