Article View: adobe.scripting.indesign
Article #856[Applescript CS2] Probleme with link status result (runtime vs script)
From: EricGagnon
Date: Thu, 26 Feb 2009 22:18
Date: Thu, 26 Feb 2009 22:18
24 lines
1589 bytes
1589 bytes
Hi,
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).
In the script, i do a simple "as string" on the link status.
I get results like "'constant *****lmbd".
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.
I tought that the demo of CS4 i had installed was conflicting and tried using the "using terms from application..". Doesnt work either.
I already did a search on google and the forum so i'm a bit lost in other things to try out. (i have found the numerical values of the constant but i was not able to find a way to use them).
Thanks for any help!
Eric
Technical Details
Message-ID:
<59b80fb6.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,50709e55a5432581,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: EricGagnon@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [Applescript CS2] Probleme with link status result (runtime vs script) Message-ID: <59b80fb6.-1@webcrossing.la2eafNXanI> Date: Thu, 26 Feb 2009 14:18:35 -0800 Lines: 30 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit