• 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: arrange icons on desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: arrange icons on desktop


  • Subject: Re: arrange icons on desktop
  • From: kai <email@hidden>
  • Date: Wed, 16 Nov 2005 13:40:02 +0000


On 16 Nov 2005, at 07:45, Yvan KOENIG wrote:

Le 16 nov. 2005, à 1:36, email@hidden a écrit :
…
Hmmm!

on check_checkbox_ticked()
[...]

[snip]

I'm using 10.3.9 and this handler always returns false so the script is not usable.

As a french user, I had to add these instructions:

[snip]

I have to confess that Yvan experienced similar issues with the code I posted on this subject. The main problem relates to a statement selecting the desktop (perform action "AXRaise"), to ensure that subsequent commands aren't performed on the wrong window. (I believe the action broke sometime pre-Tiger. Offhand, I can't really think of a simple, foolproof, scripted alternative to achieving this - unless, of course, someone knows different.)

Addressing the localization issue was a bit easier:

-------------------------------

to |keep desktop arranged| by v
	tell application "Finder" to set n to displayed name of desktop
	tell application "System Events" to tell process "Finder"
		set frontmost to true
		perform scroll area 1's action "AXRaise"
		tell (first window whose subrole is "AXFloatingWindow" and name is n)
			if not (exists) then keystroke "j" using command down
			tell checkbox 3
				repeat until exists
					delay 0.1
				end repeat
				if value is 0 then click
				repeat while value is 0
					delay 0.1
				end repeat
			end tell
			tell pop up button 1 to if value is not v then
				click
				click menu item v of menu 1
			end if
		end tell
		keystroke "j" using command down
	end tell
end |keep desktop arranged|

|keep desktop arranged| by "Kind" (* as defined in View Options *)

-------------------------------

---
kai


_______________________________________________ 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
  • Follow-Ups:
    • Re: arrange icons on desktop
      • From: Dave Lyons <email@hidden>
References: 
 >Re: arrange icons on desktop (From: email@hidden)
 >Re: arrange icons on desktop (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Entourage -- moving message from one folder to another
  • Next by Date: Set type preferences in InDesign
  • Previous by thread: Re: arrange icons on desktop
  • Next by thread: Re: arrange icons on desktop
  • Index(es):
    • Date
    • Thread