set position does not works "as is"
set position does not works "as is"
- Subject: set position does not works "as is"
- From: Emile Schwarz <email@hidden>
- Date: Mon, 01 Feb 2010 16:30:12 +0100
Hi all,
to be complete, the subject is:
set position does not works unless you close and re-open the window
Consider the code below, run it and you will not see the target file
moving to the brand new position and I do not know why. Here’s the used
script:
tell application "Finder"
-- Keyboard shortcut
set fw to front window
-- Set the variable
set IcnName to "Icon.png"
-- Change the file position
if item IcnName of fw exists then
set Icn to (item IcnName of fw as alias)
set position of Icn to {630, 74}
end if
end tell
even after I added:
tell fw to update with necessity
nothing happens after I run the script.
Nota: the Icon.png file moves to its new position after the window is
closed and re-opened.
Of course, this script worked fine under Leopard.
Any idea on how to change that ?
Emile
Hardware: MacBook UniBody 2.4 GHZ, 2008-11
Software: Snow Leopard .2 (clean install on a formated hard disk from
the original SL CD, .2 Combo and other updates installed)
_______________________________________________
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