How do I run a javascript/script within an applescript?
How do I run a javascript/script within an applescript?
- Subject: How do I run a javascript/script within an applescript?
- From: "Patrik B." <email@hidden>
- Date: Mon, 15 Jan 2007 01:58:42 -0800
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:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden