On Jul 19, 2013, at 4:51 AM, koenig.yvan wrote: 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.
I do most of my work in 10.6.8 and only run the newer versions of the OS in emulation since too many features I relied on are removed and many introduced features are annoying and can't be turned off.
I was bitten by Lion and wasted many many many hours by making the mistake to upgrade to that. Then I was bitten by the upgrade to iTunes 11 and lost 6 THOUSAND podcasts due to a bug in the GUI.
I was also bitten by two upgrades in Xcode from 4.2 to 4.3 and 4.4 where Xcode upgraded the versioning of the storyboards without asking you, making the storyboards un-openable in 4.2.
I was also bitten by the upgrade from iOS 5 to iOS 5.1 where this prevented Xcode 4.2 from building to the device. And you can't revert it.
Apple's really screwed up the interfaces of the OS in the past two releases and many of the new "features" in the OSes I find usability regressions and useless crap flying across the screen that you have to spend valuable time learning how to turn off, or you simply can't turn off.
Based on how many times my productivity and time has been completely wasted by Apple updates since Lion was released, there is no way I am upgrading my working system without running the latest in emulation for a long time.
To date, we lost: - The Finder's command control 1, 2, 3, 4, 5 sorting the list view by columns and toggling the sort order. - The new Find command in the Finder since Lion is a royal pain to change from "contents" to "file name". - Mountain Lion now makes EVERY NSOutlineView (folders in list view) animate the roll out of the expand/collapse of the content, making you wait to see the results. - Safari's downloads window has been replaced with a stupid non-window thing and you can't display it at all if it's empty. - Safari no has this distracting "flying icon" whenever you do a download and you can't turn it off. - Mail has this irritating swoop up animation on send and you have to find out how to turn them off. - All windows and dialogs now pop open in your face - which is creepy and you need to find out how to turn off. - Auto save and auto restore is not always the most desirable option. - copying large bundles of files now takes longer. Try copying Xcode and you'll wait 50% of the time with 0 bytes copied. - Sandboxing and "Every app is an island". Kill me now. Just let me save my material where I WANT TO. - Auto termination of apps is a complete farce - I WANT TO USE THE INTERFACE OF THE APP IF I CLOSE THE LAST DOCUMENT. THIS IS WHY THE INTERFACE EXISTS. And the app isn't really quit. Only the GUI is. The app is still running. On my 16 GB Mac, this saves me 5 MB of RAM and forces me to relaunch the app I just had open. This also implies that all apps are good citizens with respect to memory and all other apps. - Safari still runs at full blast when in the background, forcing me to write my own methods to pause Safari or disable _javascript_ when in the background. - iTunes 11 - the GUI looks like garbage and it's slower AND I lost 6 thousand podcasts and it's using Helvetica Neue? Is this a Mac app or an iOS app? This is nonstandard with the rest of the Mac experience and it looks like it was created by an art student in GIMP. - The new trend of removing button background treatments on buttons in the tool bars simply make them look like graphics, not the buttons they are. This introduces doubt in the mind of the users. What's a button and what's a graphic? There is no visual difference. This is BAD. - The skinny gray scroll bar thumbs are the width of a QUARTER on my 17" MacBook. And the graphics do not match the actual clickable area of the control! This introduces doubt in the mind of the user and inconstancy in the UI if the graphic for an item isn't the entire actual clickable area for that item. - Running Mountain Lion on a modern (non SSD) MBP 13 is SLOWER than running Tiger on a MBP with 666MHz RAM. Safari launches in one bounce on the old Mac. I can not run ML on a machine without an SSD. - Animations. Time consuming distracting animations EVERYWHERE. And we can't turn them off. I want a CRISP and FAST interface, not one where I have to watch every UI element reposition itself. Valuable developer TIME was put into this garbage. Can't we just have less animation and a fast system? Obviously not. But then I stick with Snow Leopard unless I need the latest Xcode, so, yes, yes I mostly can. - command control D over text used to quickly display the dictionary definition for a word. Now, you have to wait and a little "pop open" animation appears when it used to be instant. Can you turn this off to get the window to display instantly as before? I don't know. I shouldn't have to spend the time to find out.
So, I beg to differ with you that there are benefits in the new versions of the Mac OS and many products. Apple is destroying the computer we loved to use. The last two releases have shown that more time has been spent putting in useless animated effects - that we can't turn off - than making the Mac OS a usable and fast system. And if I could talk about the latest one, if I knew anything about it, I would suspect more of the same, or even much worse.
Anyway, back to the issue at hand.
|