Mailing Lists: Apple Mailing Lists

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

folder resize & move



Title: folder resize & move

Hello,
  I am new to AS development and am stuck on a seemingly simple action.  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?

Thanks alot in advance,
Dan


        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 position of dFile to {370, 120}
                close dWin
        end tell

 _______________________________________________
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



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.