Re: How to read/set two Finder "display window"
Re: How to read/set two Finder "display window"
- Subject: Re: How to read/set two Finder "display window"
- From: Emile Schwarz <email@hidden>
- Date: Wed, 30 Dec 2009 10:37:30 +0100
Hi Brian,
When I wrote:
>I get nearly all properties of the Finder View window.
I meant that I know how to set the icon view options properties:
<icon view options>
icon view options n : the icon view options
properties
arrangement (not arranged/snap to grid/arranged by name/arranged by
modification date/arranged by creation date/arranged by size/arranged by
kind/arranged by label) : the property by which to keep icons arranged
icon size (integer) : the size of icons displayed in the icon view
shows item info (boolean) : additional info about an item displayed in
icon view
shows icon preview (boolean) : displays a preview of the item in icon view
text size (integer) : the size of the text displayed in the icon view
label position (right/bottom) : the location of the label in reference
to the icon
background picture (file) : the background picture of the icon view
background color (RGB color) : the background color of the icon view
</icon view options>
(Informations taken from the Finder dictionary: Finder window --> Icon
View Options).
But I do not found a property to be set/unset for these two options of
the Cmd-J (in Mac OS X Fr)…
Thank you for reading,
Emile
Le 29/12/09 21:01, email@hidden a écrit :
Date: Tue, 29 Dec 2009 20:09:30 +1100 From: Brian Christmas
<email@hidden> Subject: Re: How to read/set two Finder "display
window" To: applescript-users-request
<email@hidden> Message-ID:
<email@hidden> Content-Type:
text/plain; charset="windows-1252" On 29/12/2009, at 4:22 AM, Emile
Schwarz wrote:
> Hi all,
>
> I get nearly all properties of the Finder View window.
>
> Sorry, but the window name is a French to English translation, so it could not be "understandable". I talk about the properties we can set using<icon view options>.
>
> There are two properties that I cannot write/read:
>
> The CheckBox at the top of the window (Always open that window in View by Icons…) and the Button at the bottom of the window (Use these values as default).
>
> I need to set the checkbox by code in a script that creates a bunch of folders (it can be some tens to some hundred) and I do not want to check them some times later…
>
> This is a brand new Leopard (Snow Leopard) property that one have to set if (s)he wants to always open these folders as View by Icons (and not View as List or whaterver other view).
>
> TIA,
>
> Emile
G'day Emile
I'm not sure what you want, but is the following any use to you. The windows of the folders don't have to be open to set them.
tell application "Finder"
set WindowName to folder "123456" as text
set current view of window of alias WindowName to icon view
set arrangement of icon view options of window of alias WindowName to arranged by creation date -- or, modification date, name etc
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden