• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get list of desktops?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get list of desktops?


  • Subject: Re: Get list of desktops?
  • From: Alex Zavatone <email@hidden>
  • Date: Fri, 19 Jul 2013 10:55:53 -0400


On Jul 19, 2013, at 6:16 AM, Brian Christmas wrote:

I just altered the code, and it errorred. I reset it back, and it still errorred.

So I tried it in an error trap, and it worked.

Please try this code snippet.. tested under 10.8.4, new iMac i7


try
tell application "System Events"
get properties of desktop
end tell
on error
tell application "System Events"
set temp to id of every desktop as list
repeat with x from 1 to count of temp
set tempID to item x of temp as integer
get properties of desktop id tempID
end repeat
end tell
end try

Mac OS 10.6.8:

error "Can’t make id of every «class dskp» of application \"System Events\" into type integer." number -1700 from id of every «class dskp» to integer

Mac OS 10.8.3:

error "System Events got an error: Invalid key form." number -10002 from desktop id 1.535231424E+9
 _______________________________________________
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

References: 
 >Fwd: Get list of desktops? (From: "koenig.yvan" <email@hidden>)
 >Re: Get list of desktops? (From: Alex Zavatone <email@hidden>)
 >Re: Get list of desktops? (From: "koenig.yvan" <email@hidden>)
 >Re: Get list of desktops? (From: Alex Zavatone <email@hidden>)
 >Re: Get list of desktops? (From: Alex Zavatone <email@hidden>)
 >Re: Get list of desktops? (From: Brian Christmas <email@hidden>)
 >Re: Get list of desktops? (From: "koenig.yvan" <email@hidden>)
 >Re: Get list of desktops? (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Get list of desktops?
  • Next by Date: Re: Get list of desktops?
  • Previous by thread: Re: Get list of desktops?
  • Next by thread: Re: Get list of desktops?
  • Index(es):
    • Date
    • Thread