AppleScript won't compile (?)
Richard Gaskin
ambassador at fourthworld.com
Fri Aug 20 01:46:00 EDT 2004
Marian Petrides wrote:
> On Aug 19, 2004, at 11:52 PM, Richard Gaskin wrote:
>> Sarah Reichelt wrote:
>>> This is very odd. I have always recommended that AppleScripts only
>>> be transferred to Rev after they have been tested in the AppleScript
>>> editor, and have never had a script that worked in one & not the
>>> othere. The only idea I had was the line continuations. Does it work
>>> if you make all the wrapped lines into single lines?
>>
>> Thanks for looking into it. I found the culprit: it was the "choose
>> from list" AppleScript command. That's okay, because I don't really
>> want to display a list of chapter info but merely return it to Rev,
>> so not having that available doesn't bother me.
>>
>> Still curious as to why that doesn't work from Rev, though.
>
> That's odd because when I try to compile this script in AppleScript
> editor it gives me a compile error at exactly the same spot: Syntax
> error: expected comma but found identifier with the highlighted word
> (identifier) being chapter.
It may be a formatting issue caused by email; when I open the script
directly from Apple's example it runs, and when I Select All, Copy, and
Paste into a new script in AppleScript editor it runs, but when I paste
into a Rev field and try to run from there it fails.
If you're inclined to try it (it's a useful set of scripts to have
anyway if you need to script the QT Player) it's at:
<http://www.apple.com/applescript/quicktime/>
Once the archive is decompressed the example I used is in:
QuickTime Player Scripts/Chapters/Chapter Summary.scpt
--
Richard Gaskin
Fourth World Media Corporation
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list