Re: set position does not works "as is"
Re: set position does not works "as is"
- Subject: Re: set position does not works "as is"
- From: "Nigel Garvey" <email@hidden>
- Date: Wed, 3 Feb 2010 01:13:24 +0000
Emile Schwarz wrote on Mon, 01 Feb 2010 16:30:12 +0100:
>set position does not works unless you close and re-open the window
>Any idea on how to change that ?
I don't know how to change it, but faster work-rounds are to change the
window's target momentarily or, better still, flip its view setting.
Switching to list view and back produces a visual "whoosh" effect that
you might get to like. :)
tell application "Finder"
-- Keyboard shortcut
set fw to front Finder window
-- Set the variable
set IcnName to "Icon.png"
-- Change the file position
tell fw
if (item IcnName exists) then
set position of item IcnName to {630, 74}
set {current view, current view} to {list view, icon view}
end if
end tell
end tell
NG
_______________________________________________
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