• 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: Finder Scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder Scripting


  • Subject: Re: Finder Scripting
  • From: Dave Lyons <email@hidden>
  • Date: Mon, 22 Aug 2005 20:48:12 -0700

On Aug 21, 2005, at 12:01 AM, Emile Schwarz wrote:
Hi Dave et al.,

I am sorry to have to report the following:

tell application "Finder"
	set bounds of front window to {0, 44, 100, 100}
	return properties of front window
end tell

When run, the script does its job. BUT, close the window, open it and you get the window back to the previous location and widh/ height...

This appears in the original 10.4, 10.4.1, 10.4.2.

Thanks; we are now tracking this better in Radar.

I haven't yet tried the following workaround (offered in one of the bug reports), which is said to make the change stick. After setting the bounds, change the "toolbar visible" property and then change it back:
set toolbar visible of theWindow to true
set toolbar visible of theWindow to false
-- or false, true


(It won't be pretty to watch it run, but for some purposes it's better than nothing.)

I have others (plenty) like view per icon, 16 pixels, snap to grid who acts 'random' (and worst, sometimes the window background moves when I 'move an item' (that item is in the middle of the window).
Worst, I fear to move item who is in the first line or column... most of the time, the inside of the window moves to the bottom or to the right (depending on the col/line of the 'moved' original icon).
Moving more than 5 items does not make them snap to grid but also 'random'...

We do have a Radar bug for 16-pixels / snap to grid not sticking, but I'm not sure I understand the rest. -- When you say that the "window background" or the "inside of the window" moves, are all the icons shifting? And do they shift in the same manner if you move the icon using the mouse, instead of from a script?


Do you have a runnable script that demonstrates moving 5 items at once? I can try to write one, but I'll be guessing (is it 5 separate "set position of ..." statements, or somehting else?).

Cheers,

--Dave

_______________________________________________
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: Finder Scripting
      • From: Christopher Stone <email@hidden>
    • Re: Finder Scripting
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Finder Scripting (From: Emile Schwarz <email@hidden>)

  • Prev by Date: Re: Finder Scripting
  • Next by Date: Re: email script redeux
  • Previous by thread: Re: Finder Scripting
  • Next by thread: Re: Finder Scripting
  • Index(es):
    • Date
    • Thread