Re: Applescript-users Digest, Vol 2, Issue 229
Re: Applescript-users Digest, Vol 2, Issue 229
- Subject: Re: Applescript-users Digest, Vol 2, Issue 229
- From: James Murphy <email@hidden>
- Date: Sat, 09 Apr 2005 16:25:33 -0700
email@hidden wrote:
Send Applescript-users mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/applescript-users
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Applescript-users digest..."
Today's Topics:
1. Re: GUI scripting? (Yvan KOENIG)
2. Another InDesign scripting question (email@hidden)
3. Thunderbird vs. Mozilla with System Events (Elliotte Rusty Harold)
4. Re: Thunderbird vs. Mozilla with System Events
(Elliotte Rusty Harold)
5. Re: Another InDesign scripting question (Shane Stanley)
6. Re: Another InDesign scripting question (Ken Tozier)
7. Re: Another InDesign scripting question (Shane Stanley)
8. Choose * ... with timeout? (David Crowe)
9. Re: Choose * ... with timeout? (Axel Luttgens)
10. Excel 2004 & text color (Larry McMunn)
11. Re: Extreme performance drop if saved as app (daniel)
----------------------------------------------------------------------
Message: 1
Date: Fri, 8 Apr 2005 21:02:36 +0200
From: Yvan KOENIG <email@hidden>
Subject: Re: GUI scripting?
To: AppleScript-Users Mail <email@hidden>
Message-ID: email@hidden"><email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Le 8 avr. 2005 , à 16:48, Paul Berkowitz a écrit :
On 4/8/05 7:09 AM, "Geoff Canyon" <email@hidden> wrote:
Is there a way to script the arrow keys using GUI scripting? I haven't
figured out how to encode an arrow key into a script.
The old OS 7/8/9 hack of emulating ASCII characters 28 through 31 still
seems to work in some contexts in OS X:
tell application "TextEdit" to activate
tell application "System Events"
tell process "TextEdit"
keystroke (ASCII character 28)
end tell
end tell
moves the cursor to the left.
In other contexts (like text fields in my AS Studio app) where that
may not
work you can do it via the 'key code' command. I worked out that key
code
125 and 126 work the up and down arrows, for example. It's supposed to
be
machine-dependent, but I've been assured that all keyboards in recent
years
(or decades) have the same key codes for the arrows.
Hello
Glad to read that arrows are got with the same code on all keyboards.
Would be fine if it was the same for letters.
Keystroke "i" generates a "q"
and
Keystroke "I" generates a "Q"
when applied on french physical keyboards using french map.
BORING isn't it ?
The info was passed to Apple guys for months but the anomaly is always
here !
Yvan KOENIG (from FRANCE)
------------------------------
Message: 2
Date: Fri, 8 Apr 2005 13:40:45 -0700
From: email@hidden
Subject: Another InDesign scripting question
To: email@hidden
Message-ID:
email@hidden"><email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
OK, I admit I am in no way a Applescript expert, though I can make my way
though a script when pressed. I can not figure out how to increase the
page dimensions of a preexisting open page using apple script in InDesign
CS. Anyone know off hand the verbiage on that one?
Dan Burbank
Dan Burbank
Iridio - An R.R. Donnelley Company
5050 First Avenue S.
Seattle, WA 98134
t 206.826.3352
c 206.718.8655
f 206.625.9315 888.587.0911
www.iridio.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/mailman/private/applescript-users/attachments/20050408/391221d9/attachment.html
------------------------------
Message: 3
Date: Fri, 08 Apr 2005 16:44:52 -0400
From: Elliotte Rusty Harold <email@hidden>
Subject: Thunderbird vs. Mozilla with System Events
To: AppleScript <email@hidden>
Message-ID: email@hidden"><email@hidden>
Content-Type: text/plain; charset=UTF-8; format=flowed
The following script works fine in Mozilla mail.
However, it dies with Thunderbird 1.0.2 with an
"NSReceiverEvaluationScriptError: 4" message. can anyone explain what
that means or suggest a possible fix? Thanks.
tell application "System Events"
tell process "thunderbird-bin"
activate
perform action "AXPick" of menu item "Copy" of menu "Edit" of menu
bar item "Edit" of menu bar 1
set quote to the clipboard as string
click menu item "Message Source" of menu "View" of menu bar item
"View" of menu bar 1
delay 2
click menu item "Select All" of menu "Edit" of menu bar item "Edit"
of menu bar 1
delay 1
click menu item "Copy" of menu "Edit" of menu bar item "Edit" of
menu bar 1
delay 1
set rawmessage to the clipboard as string
click menu item "Close" of menu "File" of menu bar item "File" of
menu bar 1
end tell
end tell
Specifically, it dies here, as shown by the event log:
click menu item "Message Source" of menu "View" of menu bar item "View"
of menu bar 1 of process "thunderbird-bin"
"System Events got an error: NSReceiverEvaluationScriptError: 4"
Does this mean anything to anybody? Suggestions?
The following does work for me for the excel font object color index
tell application "Microsoft Excel"
set font color index of font object of used range of active sheet
to 3
end tell
The property name is font color index.
Murf
|
_______________________________________________
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