Re: background color
Re: background color
- Subject: Re: background color
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 02 Jun 2008 08:54:16 -0700
- Thread-topic: background color
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.
--
Paul Berkowitz
_______________________________________________
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