Re: I didn't tell AppleScript Editor to do anything!
Re: I didn't tell AppleScript Editor to do anything!
- Subject: Re: I didn't tell AppleScript Editor to do anything!
- From: Chris Paveglio <email@hidden>
- Date: Tue, 22 Jan 2013 15:53:00 +0000
- Thread-topic: I didn't tell AppleScript Editor to do anything!
I don't do GUI scripting much but I think you are missing something. When
you have a Tell Sys Events, usually right after that you do "tell process
someApp". But if you are missing that, and running this from Script editor
your lines here maybe it's jumping back to AS Editor as the activation.
Activate should go inside of process? Maybe try this:
Tell Application "System Events"
Tell process "System Preferences"
Activate
Tell window 1
...do stuff now...
Chris
On 1/22/13 10:28 AM, "email@hidden"
<email@hidden> wrote:
> And then, when the second loop starts, everything happens in the AppleScript
> Editor window - even when the first part of the loop (as it is now) is
>
tell application "System Events"
> activate
> tell window 1 of application process "System Preferences"
>
> As I said, I've tried various
> combinations of the order of the tell statements and I've expanded the script
> out so the whole thing contains no embedded tell statements but still this
> "tell application applescript editor" appears at the end of the first loop and
> I can't figure out why.
Can anyone see what I'm missing?
Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden