Re: Adjusting properties of container window
Re: Adjusting properties of container window
- Subject: Re: Adjusting properties of container window
- From: Nigel Garvey <email@hidden>
- Date: Tue, 23 Jul 2002 20:40:10 +0100
"Michiel (werk)" wrote on Tue, 23 Jul 2002 12:03:41 +0200:
>
When I open a folder I use:
>
Set view of container window of folder "test" to name
>
set size of container window of folder "test" to {211,556}
>
set position of container window of folder "test" to {582,45}
>
to adjust the folder.
>
>
>
The question:
>
Can I do this in one line?? Something like:
>
set properties of container window to {view:name}
>
>
This line won't work. But can someone give me a hint??
tell application "Finder"
tell container window of folder "test" to set {view, bounds,
position} to {1, {20, 100, 200, 300}, {100, 100}}
end tell
If you 'tell' the container window to set a list containing the names of
properties, it will assume they're its properties. Otherwise, you have to
write 'of container window of folder "test"' after every item in the list.
When setting by list like this, the compiler can't tell if you mean
'icon' the view setting or 'icon' the item property, so you have to use
the integer alternative. The integer alternative for 'icon' view is 1.
NG
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.