• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How do I run a javascript/script within an applescript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How do I run a javascript/script within an applescript?
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: Return PDF default reader
  • Next by Date: Quark Xpress Save As ...
  • Previous by thread: Re: Return PDF default reader
  • Next by thread: Re: How do I run a javascript/script within an applescript?
  • Index(es):
    • Date
    • Thread