Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: folder resize & move




On 6 Jul 2006, at 03:10, Daniel Yezhov wrote:

I'm trying to write an action that move and resized a finder window, as well as moving around the items in said window. The script i've written does in fact do this. But, when the window is closed and reopened, the changes are not saved. That is, the window is not in the position it should be in. What is interesting is that the item inside the window is in proper position. I've pasted my code below. Can anybody help a struggling newbie?

This is a known issue, Dan. Until a fix is forthcoming, I'm afraid the workaround is not a pretty one:


tell application "Finder"
activate
set dWin to make Finder window to disk a --where a is a name of disk image
select dWin
set dFile to dWin's item 1
set bounds of dWin to {1, 45, 500, 444}

set v to dWin's toolbar visible set dWin's toolbar visible to not v set dWin's toolbar visible to v

	set position of dFile to {370, 120}
	close dWin
end tell

--- kai


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >folder resize & move (From: "Daniel Yezhov" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.