Skip to main content
October 3, 2010
Question

Applescript "item" not working in Leopard/Snow Leopard, ok in Tiger

  • October 3, 2010
  • 1 reply
  • 1639 views

Hi all,

I have a fairly lengthy script for InDesign  CS4/Photoshop CS4 that works fine when i developed it on 10.4.11 but  when trying to open it it Script Editor/AppleScript Editor in Leopard or  Snow Leopard, it has a problem with instances of the word "item" and  won't compile.

Looks like many (or every?) time i have a line that is looking to

set [some variable] to item [some number] of [some list]

I  get different error messages depending on the line. . .If i'm reading  it right, It's giving an error message that basically reports it thinks  "item" is a command name instead of the start of an expression.

Would love any help!

This topic has been closed for replies.

1 reply

Inspiring
October 3, 2010

It sounds like a terminology conflict. Are you using any third-party scripting additions?

October 3, 2010

Thanks for your post.

No third party additions.

Just to try, I installed script debugger (Late Night Software) and it opened and ran the script, at first. But then after a different error (not the item error, something I did, which I fixed), it wouldn't recompile and showed the same "item" errors as Applescript editor.

Hmmm!

Inspiring
October 3, 2010

That's sounding even more like a terminology error.

Open it in Script Debugger and choose View -> Show Raw (Chevron) Syntax. Note down the code that appears for item. Turn off raw codes, and next it won't recompile, show the raw codes again and see if it has changed.