Re: Get list of desktops?
Re: Get list of desktops?
- Subject: Re: Get list of desktops?
- From: "koenig.yvan" <email@hidden>
- Date: Fri, 19 Jul 2013 10:51:32 +0200
Le 18/07/2013 à 22:27, Alex Zavatone < email@hidden> a écrit : error "System Events got an error: Can’t get name of every desktop." number -1728 from name of every desktop
But…
tell application "System Events" set myDesktops to every desktop
repeat with myDesktop in myDesktops set myDesktopName to the name of myDesktop tell desktop desktopName
This gives a bad key error
get name of desktop "69677952" --> error number -10002from desktop "69677952"
Accessing any property from an individual desktop reference gives this:
Get failed: an invalid key form was specified (errAEBadKeyForm:-10002)
On Jul 18, 2013, at 4:14 PM, koenig.yvan wrote: What if you use :
tell application "System Events" set desktopNames to name of every desktop --> {"iMac"} repeat with desktopName in desktopNames tell desktop desktopName set oldInterval to change interval get change interval --> 1800.0 set change interval to 3600.0 get change interval --> 3600.0 set change interval to oldInterval get change interval --> 1800.0 end tell end repeat end tell
Here it works but as you see, I have a single monitor.
KOENIG Yvan (VALLAURIS, France) jeudi 18 juillet 2013 22:14:32
Which system are you running ? Here I'm running 10.8.4 If Apple delivers new systems it's not only to introduce new features, it's also to repair odd old behaviors. They don't repair all of them but it's interesting to get the benefits of corrections which are delivered.
KOENIG Yvan (VALLAURIS, France) vendredi 19 juillet 2013 10:51:28
|
_______________________________________________
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