Eject CD (no luck, Sarah)
Sarah
sarahr at genesearch.com.au
Tue Jul 23 19:34:01 EDT 2002
I just followed your recipe exactly and it worked fine for me. I am also
running OS X 10.1.5 but I did the Software update a while ago that
updated AppleScript to 1.8 (I don't know if that is relevant).
Here are couple of things to try:
Use the AppleScript editor and try the script without Revolution. Open
the Events window & the Result window so you can see exactly what is
happening in the AppleScript. ("repeat with" is a valid AppleScript
structure. )
When you are confident that the AppleScript works, then transfer it back
to Revolution and see what happens. Execution error sounds more like a
Transcript problem than an AppleScript one, so make sure the button
script is OK and you don't have any invisible characters messing things
up (I just copied & pasted from your email so you could start again with
a new button and see if that fixes it.
I hope this helps,
Sarah
On Wednesday, July 24, 2002, at 09:20 AM, DropBox ForSpam wrote:
> It took about 3 weeks to get the time to mess around,
> but this morning was the chance :)
>
> This is what I did:
>
> Created a New stack, followed by a new button with a
> custom prop named:
>
> cAppleScriptProp
>
> next I placed this in that prop:
>
> tell application "Finder"
> set diskList to every disk whose ejectable = true
> repeat with d in diskList
> eject d
> end repeat
> end tell
>
> Finally I placed this in the button's script:
>
> on mouseUp
> do the cAppleScriptProp of me as AppleScript
> end mouseUp
>
> -------
>
> The disc I inserted is not ejected, additionally, if I
> type:
>
> do the cAppleScriptProp of btn 1 as AppleScript
>
> in the message box, "Execution Error" is returned (in
> the msg box)
>
> is there an error in the AppleScript somewhere? For
> instance I know the notation "repeat with d in
> diskList" is valid TranScript, but is that valid AS?
> I know you (Sarah) said this was tested under OS X, so
> I'm thoroughly puzzled by this.
>
> I'm using Mac OS X 10.1.5
>
> Thanks for any further suggestions! :)
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> _______________________________________________
> 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