• 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
Executing embedded script with parameters (was: QuarkXPress 6 Spread Finder)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Executing embedded script with parameters (was: QuarkXPress 6 Spread Finder)


  • Subject: Executing embedded script with parameters (was: QuarkXPress 6 Spread Finder)
  • From: Thomas Engelmeier <email@hidden>
  • Date: Thu, 8 Jul 2004 11:19:15 +0200

At 23:18 Uhr +0200 03.07.2004, Hans Haesler wrote:

Your script will run much faster with the 'do script' method.
Then there are other modifications which will contribute
a little to make it faster.

That looks as if might also cure some coercion handler problems if XPress 6 and XPress {Pre Carbon} are running simulatanous. But how can I pass parameters?

I need something like:

tell application "QuarkXPress"
if not (exists document 1) then error "No document is open."
set selection to null
do script {do someThing "hello " "world"}
end tell

script doSomething
on run text1, text2
tell document 1 of application "QuarkXPress"
set content of first box whose name is "foo" to text1
end tell
end on
end -- script
--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Executing embedded script with parameters (was: QuarkXPress 6 Spread Finder)
      • From: Hans Haesler <email@hidden>
  • Prev by Date: Re: Changing screen resolution
  • Next by Date: Quickeys shortcut from Filemaker Pro
  • Previous by thread: Re: Looping through a mailbox?
  • Next by thread: Re: Executing embedded script with parameters (was: QuarkXPress 6 Spread Finder)
  • Index(es):
    • Date
    • Thread