Hi Matt, yes it is a Scripting Bridge question. I re-position the icon of a FinderItem that way: finderItem.position = newPos;
Anyway, as I have read on the web (didn't yet checked), you can resize a closed window modifying the .DS_Store. But even if that is not true, if when I open a folder I get the same window frame as the last time it was open, I guess this value is stored somewhere. So, I could change this value even when the window is closed. Some year ago I used to do that with the Carbon APIs. Regards -- Leonardo > Da: Matt Neuburg <m...@tidbits.com> > Data: Tue, 11 Oct 2011 10:01:24 -0700 > A: Leonardo <mac.iphone....@gmail.com> > Cc: <cocoa-dev@lists.apple.com> > Oggetto: Re: Scripting Bridge Finder > > On Mon, 10 Oct 2011 14:48:29 +0200, Leonardo <mac.iphone....@gmail.com> said: >> Hi, >> with Scripting Bridge Finder, I am trying to change the folder window size >> and the icon position of the files therein. I got 2 troubles. >> >> 1) If the folder window is closed, I can't resize it. >> 2) After I change the position of the icon, I have to close the folder then >> reopen it, in order to see the change. > > This is not a Cocoa question. It's not even a Scripting Bridge question. What > you're having trouble doing is scripting the Finder, plain and simple. You'd > be better off asking on an AppleScript list. > > m. > > PS But the answer to your first question is obvious: a closed window doesn't > exist - you can't refer to it, so of course you can't change its size. > > -- > matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> > A fool + a tool + an autorelease pool = cool! > Programming iOS 4! > http://www.apeth.net/matt/default.html#iosbook _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com