Thread View: adobe.scripting.indesign
1 messages
1 total messages
Started by Shane_Stanley
Thu, 26 Feb 2009 22:51
[Applescript CS2] Problem with link status result (runtime vs script)
Author: Shane_Stanley
Date: Thu, 26 Feb 2009 22:51
Date: Thu, 26 Feb 2009 22:51
37 lines
2477 bytes
2477 bytes
On 27/2/09 9:19 AM, "EricGagnon" <member@adobeforums.com> wrote: > I have this problem where the link status is reported appropriately when i > execute the script throught the script editor (or Applescript Debugger) but > give a different result at runtime (when compiled/run as application or > embeded in a Realbasic application). That's because AppleScript doesn't load ID's dictionary at runtime. When you do it in an editor, the editor translates back and forth between the raw codes and the terminology you use to write scripts, but that doen't happen with a compiled app. > > In the script, i do a simple "as string" on the link status. > > I get results like "'constant *****lmbd". Exactly. > > I have tried to catch the value more directly: > By exemple instead of tStatus= status of link.. (as string) > I have done something like: > if status of link = normal then > tLogStatus="normal" > end if > > Doesnt work. It should. Try this: set theStatus to status of link x -- so you only get it once if theStatus = normal then set thestatus to "normal" else if... -- Shane Stanley <sstanley@myriad-com.com.au> AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads