• 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
Quark Open Options
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quark Open Options


  • Subject: Quark Open Options
  • From: Mark Butler <email@hidden>
  • Date: Tue, 21 Feb 2006 22:28:40 -0800

Hello everyone,

I am wondering if there is anyway around writing all the options for this in if statements.


This works fine..

set anitem to choose file
tell app "QuarkXPress"
	open anitem use doc prefs ask
end tell


What I would like to be able to do.... This gives me an error "QuarkXPress got an error: Can't make some data into the expected type."


set docPrefs to "ask"
set anitem to choose file
tell app "QuarkXPress"
	open anitem use doc prefs (docPrefs) as string
end tell


I know I could do this.. but it seems kinda inefficient

set docPrefs to "ask"
set anitem to choose file
if docPrefs is "ask"
tell app "QuarkXPress"
	open anitem use doc prefs (docPrefs) as string
end tell
end if


I could write this in if statements but when you combine that with the 5 or 6 other options it could end up being a fair size chunk of code.


Thanks for you help,

Mark
_______________________________________________
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


  • Follow-Ups:
    • Re: Quark Open Options
      • From: Peter Waibel <email@hidden>
References: 
 >Re: Database Events (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Database Events
  • Next by Date: Proper syntax for using perform action on tab view items
  • Previous by thread: Re: Database Events
  • Next by thread: Re: Quark Open Options
  • Index(es):
    • Date
    • Thread