realbasic-nug
[Top] [All Lists]

Trouble with AppleScript and RB

To: realbasic-nug at lists dot realsoftware dot com
Subject: Trouble with AppleScript and RB
From: "Dave DeLong" <theloki42 at hotmail dot com>
Date: Mon, 31 May 2004 09:28:24 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
List-help: <mailto:realbasic-nug-request@lists.realsoftware.com?subject=help>
List-id: REALbasic NUG <realbasic-nug.lists.realsoftware.com>
List-post: <mailto:realbasic-nug@lists.realsoftware.com>
Hi List,

I have this applescript:

On Run
 Tell Application "iTunes"
   Set s to the player state
 end tell
 return s
end run

When I import it into RB and call the script, i'm supposed to get "playing", "paused", "stopped", "fast forwarding", or "rewinding". But what I get instead is some gibberish about "<<Constant***...."

Any ideas? (And I don't think it's an encoding issue because I have other applescripts in the same program that all run correctly)

Thanks,

Dave

_________________________________________________________________
Express yourself with the new version of MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>