OS X: Can launch app but not file

Trevor DeVore lists at mangomultimedia.com
Mon Sep 1 06:51:00 EDT 2003


On 8/31/03 Kaveh Bazargan wrote

>At 10:20 pm +0200 31/8/03, tkuypers at pandora.be wrote:
>>Put "tell program " & quote & "Finder" & quote & " to open " & quote &
>>"drive:folder:application.app" & quote into vScript
>>Do vScript as applescript
>>
>>This should do the job ;-)
>
>Hey thanks.
>
>Is there no easier way? :-(

If you want to be able to type scripts in and have them executed you could create a custom property to hold the applescript to run.

Create a custom prop called uAppleScript in the stack.  Paste the following into it:

display dialog "hi"

Create a button with the following script:

on mouseUp
    do the uAppleScript of this stack as applescript
end mouseUp

You should see a dialog box with 'Hi' displayed in it.

-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com



More information about the use-livecode mailing list