Re: How to deal with Resource Forks from command line
Re: How to deal with Resource Forks from command line
- Subject: Re: How to deal with Resource Forks from command line
- From: Andrei Tchijov <email@hidden>
- Date: Wed, 28 Sep 2005 08:37:10 -0400
Andreas,
Thanks a lot. Setting background picture is one of few things I was
able to figure-out
...
set targetWindow to the front window
set targetWindowIVO to icon view options of targetWindow
set bgPicture to ... -- reference to file with picture
set background picture of the targetWindowIVO to bgPicture
...
The only thing I do not have ANY idea how to do is assigning custom
icons to files/folders. Any attempts to get "icon" property from file/
folder return "missing value" and any attempts to set it produce
error - "Can not set ..."
On Sep 28, 2005, at 08:08, Andreas Mayer wrote:
Am 28.09.2005 um 04:13 Uhr schrieb Andrei Tchijov:
Any pointers how exactly to do it (simple sample code will do
wonderfully)?
tell application "Finder"
activate
make new Finder window to disk "MyDisk"
set current view of Finder window 1 to icon view
set toolbar visible of Finder window 1 to 0
set bounds of Finder window 1 to {16, 64, 440, 484}
set icon size of icon view options of Finder window 1 to 112
set position of item "File1" of Finder window 1 to {100, 104}
set position of item "File2" of Finder window 1 to {100, 308}
set position of item "File3" of Finder window 1 to {300, 172}
end tell
I didn't find a way to reliably set the background picture using a
script.
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden