Re: Panther versus tiger
Re: Panther versus tiger
- Subject: Re: Panther versus tiger
- From: Jan Bultereys <email@hidden>
- Date: Thu, 30 Mar 2006 09:58:26 +0200
- Thread-topic: Panther versus tiger
Title: Re: Panther versus tiger
Hi, thanks everyone for the input.... But still no success.
Did the following:
Removed try and saw that the error is coming from “click menu item "Custom..."”
Removed the line “ tell menu bar item "Style" ... Still works on tiger but not on panther
Checked “enable access for assistive devices” it was on
Any other suggestions are must appreciated
jan
From: Christopher Nebel <email@hidden>
Date: Wed, 29 Mar 2006 11:21:34 -0800
To: AppleScript Users <email@hidden>
Subject: Re: Panther versus tiger
"menu bar item" was added in Tiger -- Panther doesn't know about them. In this particular case, System Events can adjust: leave out the 'tell menu bar item "Style"', and it should work. (You don't get an error with this script because the "try" block swallows it.)
I should point out that, in general, GUI Scripting scripts are not guaranteed to work on *any* machine configuration other than the one you originally wrote it on. Any change to the OS or the application you're trying to manipulate may cause the script to stop working. (And people wonder why everything isn't done with GUI scripting...)
--Chris Nebel
AppleScript Engineering
On Mar 29, 2006, at 7:53 AM, Jan Bultereys wrote:
Hi, does anyone knows why this works in tiger but not in panther? No errors given it just does nothing in Panther.
tell application "QuarkXPress Passport"
tell document 1
activate
try
tell application "System Events"
tell process "QuarkXPress"
tell menu bar 1
tell menu bar item "Style"
tell menu "Style"
tell menu item "Underline Styles"
tell menu "Underline Styles"
click menu item "Custom..."
tell window "Underline Settings"
keystroke "50%"
keystroke tab
keystroke "0.3 pt"
keystroke tab
keystroke "2.5 pt"
keystroke return
end tell
end tell
end tell
end tell
end tell
end tell
end tell
end tell
end try
end tell
end tell
Any input appreciated,jan
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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