Re: Print PS file Quark
Re: Print PS file Quark
- Subject: Re: Print PS file Quark
- From: Peter Waibel <email@hidden>
- Date: Thu, 8 Jun 2006 14:59:27 +0200
On version 6 and 6.1 (which I have here in the office) both version
crash as they produce the PS file. Rather frustrating.. I'm
wondering if someone has had this problem and knows how to avoid it?
Quark's print command is broken when using Max OS Tiger.
The print command worked with Panther.
With Tiger you must use UI scripting
Try something like this:
tell application "System Events"
tell process "QuarkXPress"
--
set menuPath to ""
set isPrintMenuClicked to false
--
tell menu bar 1
if enabled then
--
tell menu bar item 3
if enabled then
--
tell menu 1
set menuPath to menuPath & "/" & name
if enabled then
--
set menuItemNameList to name of every menu item
--
set printMenuItem_LanguageNameList to {"Print..."}
repeat with aMenuItemName in menuItemNameList
if (contents of aMenuItemName) is in
printMenuItem_LanguageNameList then
tell menu item (contents of aMenuItemName)
set menuPath to menuPath & "/" & name
if enabled then
click
set isPrintMenuClicked to true
else
error "Not enabled! Menu: " & menuPath
end if
end tell
end if
end repeat
else
error "Not enabled! Menu: " & menuPath
end if
end tell
else
error "Not enabled! Menu Bar Item 3: " & name
end if
end tell
else
error "Not enabled! Menu Bar: " & name
end if
end tell
end tell
end tell
Peter
_______________________________________________
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