Re: Photoshop CS2 and GUI Scripting
Re: Photoshop CS2 and GUI Scripting
- Subject: Re: Photoshop CS2 and GUI Scripting
- From: kai <email@hidden>
- Date: Mon, 22 May 2006 20:08:06 +0100
On 22 May 2006, at 10:04, Bill Cheeseman wrote:
on 2006-05-21 8:54 PM, Irwin Poche at email@hidden wrote:
tell application process "Photoshop" to set y to name of menu item
7 of menu 1
of menu bar item "View" of menu bar 1
--should be "Zoom In"
There is no "name" property of a menu item. It should be 'set y to
title of
menu item....'
That would certainly explain Irwin's
"NSReceiverEvaluationScriptError: 4" error, Bill.
Were you referring to Photoshop CS2 specifically? I ask because most
application processes I've tested appear to have both a title and a
name property (usually with the same value). For example, a quick
poll of a few processes gives me this:
----------------
tell application "System Events"
set l to application processes where it is not background only
repeat with p in l
set p's contents to name of menu item 1 of menu 1 of menu bar item
2 of p's menu bar 1
end repeat
end tell
l
--> {"About Finder", "About iCal", "About Address Book", "About
Mail", "About Safari", "About Camino", "About iTunes", "About
QuickTime Player", "About iPhoto", "About GraphicConverter…", "About
AppleWorks", "About Dictionary", "About TextEdit", "About Tex-Edit
Plus", "About TextWrangler", "About Automator", "About Xcode", "About
Calculator", "About DropStuff…", "About Preview", "About Adobe
Reader", "About Console", "About Terminal", "About CronniX", "About
Word", "About Excel", "About PowerPoint", "About Script Editor",
"About ImageReady...", "About Photoshop..."} (* that's Adobe
Photoshop 7.0, BTW *)
----------------
---
kai
_______________________________________________
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