Repost: Changing desktop pictures
Repost: Changing desktop pictures
- Subject: Repost: Changing desktop pictures
- From: Peter Beentje <email@hidden>
- Date: Thu, 23 Oct 2003 17:26:29 +0100
Been working on the GUI stuff - but I don't seem to be able to click
with it.
eg
tell application "System Preferences"
activate
end tell
tell application "System Events"
with timeout of 300 seconds -- 5 minutes
tell process "system preferences"
tell menu bar 1
tell menu "view"
click menu item "Desktop"
end tell
end tell
end tell
end timeout
end tell
--> NSReceiverEvaluationScriptError: 4 (tested out carefully; it copes
with everything but the instruction to click)
This is modified direct from the AS GUI page; it won't click with a
single line tell, it won't click with tell menu item
"desktop">click>end tell, and I still can't work out how to activate
the .plist that stores the current desktop picture information. In OS9
you just tell Appearance to do it; In OSX it seems unreachable, and AS
GUI won't let me get to it auto-manually.
Help?
On Wednesday, October 8, 2003, at 03:01 pm, Peter Beentje wrote:
>
Hi all
>
I've sorted out how to update the desktop picture path from finder,
>
and found the same thing in the list archives; but setting a new path
>
to a different picture doesn't update the desktop picture itself.
>
Short of restarting, I can't find a way to tell it to update -
>
relaunching the finder leaves the background as it is, and I'm not at
>
all convinced I can script window manager (which seems to be handling
>
the changes when I set it to auto-update every 5 seconds)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.