Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quark Open Options



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >Re: Database Events (From: Bill Cheeseman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.