OS X 'do applescript' consistently launches Classic (was newbiequestions)
Ian Wood
ian at azurevision.co.uk
Mon Oct 20 18:29:37 EDT 2003
Aah!
I couldn't think of a way to get the file path to QT, and remembered
'of the startup disk'...
tell application "Finder"
open file "QuickTime Player" of the folder "Applications" of the
startup disk
end tell
tell app "QuickTime Player"
etc.
This now works fine, but I still find it odd that 'do AppleScript'
should give different results to Script Editor or to a script
application.
I could have just told the finder to open the file if it had been a QT
movie, but it's a folder full of JPEGs from snapshots, to be opened as
an image sequence so that approach was no help. Mind you, this will
not work in 9, so I'll have to add yet another if statement to the
button script.
Thanks,
Ian
On Monday, October 20, 2003, at 02:36 pm, Ken Ray wrote:
> Ian,
>
> Try opening the OS X version of QT Player with "open location" from
> inside AppleScript, then "tell" it...
>
> HTH,
>
> Ken Ray
> Sons of Thunder Software
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
>
>> -----Original Message-----
>> From: use-revolution-bounces at lists.runrev.com
>> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Ian Wood
>> Sent: Monday, October 20, 2003 4:06 AM
>> To: use-revolution at lists.runrev.com
>> Subject: OS X 'do applescript' consistently launches Classic
>> (was newbiequestions)
>>
>>
>> I've sorted out my other problems, but this one is still happening:
>>
>> In text field "applescript"-
>> tell application "QuickTime Player"
>> activate
>>
>> blah blah bits of applescript code
>>
>> end tell
>>
>>
>> In a button-
>> on mouseUp
>> put text of field "applescript" into theScript
>> do theScript as AppleScript
>> end mouseUp
>>
>>
>> If QT is open then it works fine, if QT is not open then Classic
>> launches and the OS 9 version of QT opens.
>>
>> This has the same effect with all Apple apps with the same name in X
>> and 9, such as QT, iMovie, Disk Copy, iTunes. If the app is not
>> already open in X then the Classic environment launches.
>>
>> It does NOT have the same effect for non-Apple apps such as Internet
>> Explorer or Stuffit Expander.
>>
>> ???
>>
>> Tested with Rev 1.1.1 on OS X 10.2.1 & Rev 2.1 trial on 10.2.6.
>>
>> Any help with this would be great, it's getting really annoying!
>>
>> Ian Wood
>> Panoramic photography, from web to billboard, sunrise to
>> moonrise http://www.azurevision.co.uk
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-> revolution
>>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list