Executing embedded script with parameters (was: QuarkXPress 6 Spread Finder)
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.