Re: Scripting Bridge Finder
Re: Scripting Bridge Finder
- Subject: Re: Scripting Bridge Finder
- From: Leonardo <email@hidden>
- Date: Wed, 12 Oct 2011 04:44:22 +0200
- Thread-topic: Scripting Bridge Finder
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 <email@hidden>
> Data: Tue, 11 Oct 2011 10:01:24 -0700
> A: Leonardo <email@hidden>
> Cc: <email@hidden>
> Oggetto: Re: Scripting Bridge Finder
>
> On Mon, 10 Oct 2011 14:48:29 +0200, Leonardo <email@hidden> 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 = email@hidden, <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 (email@hidden)
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:
This email sent to email@hidden