RE: Problem with GUI Scripting
RE: Problem with GUI Scripting
- Subject: RE: Problem with GUI Scripting
- From: "Scott Babcock" <email@hidden>
- Date: Tue, 29 Nov 2005 12:58:19 -0800
- Thread-topic: Problem with GUI Scripting
I should have thought of this, too. If PhotoShop uses a plist for its
preferences, a much easier approach to this problem is to use the
'defaults' Unix utility to write the keys that correspond to the dialog
checkboxes. For example, to keep the List Wizard from showing up in
Microsoft Excel, run this:
do shell script "defaults write Microsoft/com.microsoft.excel.prefs
'Microsoft Excel\\AutodetectList' 0"
This setting corresponds to a "Don't show me again" checkbox in an Excel
dialog. By setting it this way, I never see this dialog.
> -----Original Message-----
> From: Scott Babcock
> Sent: Tuesday, November 29, 2005 12:39 PM
> To: 'email@hidden'
> Subject: RE: Problem with GUI Scripting
>
> I don't have PhotoShop to try this on, but you might try a couple of
> things.
> If keyboard operations work, try turning on full keyboard access.
You'll
> find this setting on the Keyboard Shortcuts tab of Keyboard and Mouse
> preferences. This should enable you to set focus to the checkbox.
> Once you do this, figure out how to set focus to the checkbox. You may
be
> able to set the value of the AXFocused attribute to 'true', or you may
> have to set <tab> keystrokes.
> Once you get the focus set to the checkbox, send a <space> to select
the
> checkbox.
>
> > Date: Tue, 29 Nov 2005 15:12:06 +0100
> > From: Helmut Fuchs <email@hidden>
> > Subject: Problem with GUI Scripting
> > To: <email@hidden>
> > Message-ID: <a06210205bfb20e830ed1@[192.168.250.16]>
> > Content-Type: text/plain; charset="us-ascii" ; format="flowed"
> >
> > Hello all,
> >
> > I've written some AppleScripts to automate Adobe Photoshop CS. But
> > even though the "display dialogs" parameter is set to "never",
> > Photoshop brings up a dialog from time to time.
> >
> > In order to automatically dismiss them, I wanted to use System
> > Events' process suite. But I simply cannot click buttons! All I can
> > do is send keystrokes - which works, but that doesn't allow me to
> > click activate the "don't show this again" checkbox.
> >
> > I've tried something like this (different versions of the same
action):
> >
> > tell application "System Events"
> > tell application process "Adobe Photoshop CS"
> > set frontmost to true
> > delay 1
> > perform action "AXPress" of checkbox 1 of window 1
> > delay 1
> > click checkbox 1 of window 1
> > delay 1
> > click checkbox "Nicht mehr anzeigen" of window "Adobe
> Photoshop"
> > end tell
> > end tell
> >
> > But nothing more happens than the checkbox being briefly animated
> > three times. Just as if it was clicked without releasing the mouse
> > button in its frame.
> >
> > What is going on? Can somebody shed some light on this? Is it a
> > problem of localization? Or is it Photoshop specific?
> >
> > Thanks in advance for any info!
> >
> > Helmut
_______________________________________________
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