• 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
Tell application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: shell script and text manipulation
  • Next by Date: Need Help with Mail...
  • Previous by thread: Re: Ignore a script object or applet or what...?
  • Next by thread: Need Help with Mail...
  • Index(es):
    • Date
    • Thread