Tell application
Tell application
- Subject: Tell application
- From: Bastiaan Boertien <email@hidden>
- Date: Thu, 24 Feb 2005 10:54:15 +0100
Hi List.
I Trying to make a script that convert a QuarkXPress 6 document into a QuarkXPress 4.
QuarkXPress can only save a document one version earlier. That means that I have to open the Quark 6 document with QuarkXPress 6 and save it as an Quark 5 document. then open the document in QuarkXPress 5 and save it as an Quark 4 document.
The Problem is when QuarkXPress 6 and 5 are open all the commands goes to Quark 6.
the script is like this
tell application "QuarkXPress Passport"
save the document as Quark 5 in QuarkXPress 6
end tell
tell application "QuarkXPress Passportâ„¢ 5"
save the document as Quark 4 in QuarkXPress 5
end tell
The commands for QuarkXPress 5 goes to QuarkXPress 6 even when I open QuarkXPress 6 and 5 before I open the script.
If I open the script after the first run then 'tell application "QuarkXPress Passportâ„¢ 5"' is replaced to 'tell application "QuarkXPress Passport"'
Is there a way to tell an application by calling the full path
I was thinking someting like this only this doesn't work.
set theAppplication1 to ((path to applications folder) & "QuarkXPress 6.1:QuarkXPress Passport.app" as string) as alias
launch theAppplication1
tell application "QuarkXPress Passport"
save the document as Quark 5 in QuarkXPress 6
quit
end
set theAppplication2 to "Macintosh HD:Applications(MacOS 9):QuarkXPress 5.0:QuarkXPress Passport 5" as string) as alias
launch theAppplication2
tell application "QuarkXPress Passportâ„¢ 5"
save the document as Quark 4 in QuarkXPress 5
quit
end tell
I hope somebody can help me
Greetings bastiaan _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden