Printing PS files from QuarkXPress
Printing PS files from QuarkXPress
- Subject: Printing PS files from QuarkXPress
- From: "Scott P. Richert" <email@hidden>
- Date: Sun, 12 Jan 2003 13:50:21 -0600
Here are three scripts:
Script #1:
set myFilePath to "Macintosh HD:Desktop Folder:"
set myFileName to myFilePath & "0000_0001.ps"
tell application "QuarkXPress"
activate
print page 1 of front document PostScript file (myFileName)
end tell
Script #2:
set myFilePath to (path to desktop as string)
set myFileName to myFilePath & "0000_0001.ps"
tell application "QuarkXPress"
activate
print page 1 of front document PostScript file (myFileName)
end tell
Script #3:
set myFilePath to ((choose folder) as string)
set myFileName to myFilePath & "0000_0001.ps"
tell application "QuarkXPress"
activate
print page 1 of front document PostScript file (myFileName)
end tell
Scripts 1 & 2 work as expected, and I can modify Script 1 to point to
any folder. Script 3 consistently breaks, claiming that QuarkXPress
can't make some data into the expected type. The Events log shows the
same series of events, and the class of myFileName is string in each
script.
This is an ongoing pain in the neck. I've got a rather complicated
script with a whole bunch of error trapping and user interaction that
could be simplified (in fact, almost all user interaction could be
removed) if only Script #3 worked. Is this a QXP bug? If I target
Finder, I can use Choose Folder without raising an error. Anybody have
any workarounds?
Scott
_______________________________________________
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.