Re: Need help:-Quark Scripting
Re: Need help:-Quark Scripting
- Subject: Re: Need help:-Quark Scripting
- From: Luca BASSINI <email@hidden>
- Date: Tue, 8 Jun 2004 19:58:29 +0200
On 08/giu/04, at 16:42, BADRINATH, NANDINI wrote:
Hi,
I have an application called QuarkXPress. I click on File->Open and a
list of files is displayed. I try to select the 1st file displayed. I
used the following piece of code.
tell application "System Events"
tell process "QuarkXPress"
tell window "Open"
tell scroll area 1 of UI element 3
tell outline 1
select static text of row 1
keystroke return
end tell
end tell
end tell
end tell
End tell
But when I do this the file is not selected. I do not get any error
message but at the same time the file is not highlighted and
selected.Are there any other commands I can use to select the file? I
also tried click,press,pick,select. But the file is not being selected.
Can anyone please help on this?
Thanks,
Nandini
Nandini,
why are you trying to open the file in this terrible way? why don't you
simply tell application "QuarkXPress" to open the document you would
like to open or let the user to choose a file with choose file command?
I'm sure you're probably using XPress 6 and lot of things are
unsupported or you could encounter some bugs you could by-pass with GUI
scripting... But applescripting is more fascinating than GUIscripting
;-)
So...
Ciao
Luca
_______________________________________________
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.