Re: New to OS X question: scripting desktop picture
Re: New to OS X question: scripting desktop picture
- Subject: Re: New to OS X question: scripting desktop picture
- From: "Wallace, William" <email@hidden>
- Date: Tue, 05 Apr 2005 14:35:40 -0500
To just set the desktop picture on a single monitor setup this works fine:
tell application "Finder"
set imgFile to (choose file)
set desktop picture to imgFile
end tell
I'm not sure about a system with two monitors. Because if you'll notice in
the Finder dictionary it says:
desktop picture file -- the desktop picture of the *main monitor*
I think, therefore, that in order to script the secondary monitor's desktop
picture you'll have to rely on GUI scripting.
On 4/5/05 12:01 PM, "Mark J. Reed" <email@hidden> wrote:
> Okay, I see in the Finder dictionary that the application's "desktop
> picture" property is a proxy - but for what? System Preferences
> doesn't seem to have anything useful, and I don't know where else that
> would live.
>
> I have two monitors and would like to script the desktop picture on my
> secondary display, especially considering the frequency with which I
> run into the "wake up with a blue desktop" scenario on my laptop.
>
> I tried using System Events to script the preferences panel, but
> scripting a click on one of the images doesn't seem to do anything,
> even though a real click does. Not sure what's going on there.
>
> Anyway, any help would be appreciated.
>
> Thanks!
_______________________________________________
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