Re: background color
Re: background color
- Subject: Re: background color
- From: Luther Fuller <email@hidden>
- Date: Mon, 2 Jun 2008 11:55:03 -0500
As I just mentioned on the other thread, if you want to go from
background picture to white, it can be done, but the only way I have
(just) found is to remove the background picture as in ...
do shell script "rm ... "
The moment the background picture file disappears, the folder
background goes to white.
(And, if you try to use Trash & Empty, you will find that the picture
file is in use. You have to use 'rm'.)
On Jun 2, 2008, at 10:54 AM, Paul Berkowitz wrote:
On 6/2/08 8:20 AM, "Michelle Steiner" <email@hidden> wrote:
Icon view has a background picture property as well as a background
color property. The property is of type file. I tried to set it to
missing value and to null, but both error. It appears that once a
window has a background picture, you can't remove it using
Applescript.
Also: if you set the background picture via AppleScript, it works,
but if
you then try to get this background picture property of icon view
options,
it still can't get it (errors). I was going to see if you could
delete it,
but I couldn't get that far, since AppleScript doesn't know it's
been set!
Even in the UI, you can't remove the background picture once and for
all
once you've set it - you can only select a different picture, or
switch the
view to White or Color. (If you switch back the Picture, the
previously set
picture reappears.) So, in a way, that explains that. But the fact
that
there doesn't seem to be any way to switch the background from
Picture to
Color via AppleScript is a bug. The AppleScript properties were not
implemented correctly to reflect what can be done in the UI. Instead
of
separate 'background picture' and 'background color' properties of
'icon
view options', there should be be a 'background type' property with
two
enumerated results - 'background picture' and 'background color',
each of
which would then be settable and gettable according to their types.
_______________________________________________
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