Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I run a javascript/script within an applescript?



Hi, 

Per the book I have I should be able to do the following

tell application "indesign cs"
tell active document
activate
run script alias "G5:Cleanup.js"
end
end

This version starts and then in errors stating "Indesign CS got an error: 
A "%" can't go after this some object.

per the book the following should also work 

tell application "indesign cs"
tell active document
activate
run script file "G5:Cleanup.js"
end
end

Can anyone tell me what I am doing wrong? I remember that I had a similar 
thing working at one point but that script does not work either anymore. 
Does it have to do anything with scripting additions? I removed a bunch a 
while ago such as ACME etc.

Best, Patrik
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.