Re: background color
Re: background color
- Subject: Re: background color
- From: KOENIG Yvan <email@hidden>
- Date: Mon, 2 Jun 2008 17:45:36 +0200
Hello
When I run this piece of code:
set dossier to "Macintosh
HD:Users:yvan_koenig:Desktop:NotRepaired_deriapeRtoN:"
tell application "Finder"
open folder dossier
get properties of window 1
get properties of icon view options of window 1
try
set background picture of icon view options of window 1 to file
"Western 4:Tout Gerbino:pour ebay:_X10873à10876ƒYK:#X10873.JPG"
on error
log "point 1"
end try
log "point 2"
try
get properties of (icon view options of window 1)
on error
log "point 3"
end try
log "point 4"
try
--set background color of icon view options of window 1 to {65535,
65535, 65535}
get background color of icon view options of window 1
end try
end tell
I get this report:
tell application "Finder"
open folder "Macintosh
HD:Users:yvan_koenig:Desktop:NotRepaired_deriapeRtoN:"
get properties of window 1
{class:Finder window, id:90, name:"NotRepaired_deriapeRtoN",
position:{911, 555}, bounds:{911, 555, 1696, 976}, index:1,
zoomed:false, closeable:true, titled:true, floating:false,
modal:false, resizable:true, zoomable:true, visible:true,
collapsed:false, target:folder "NotRepaired_deriapeRtoN" of folder
"Desktop" of folder "yvan_koenig" of folder "Users" of startup disk,
current view:icon view, icon view options:icon view options of Finder
window id 90, list view options:list view options of Finder window id
90, column view options:column view options of Finder window id 90,
toolbar visible:true, statusbar visible:true, sidebar width:157}
get properties of icon view options of window 1
{class:icon view options, arrangement:arranged by name, icon size:
128, shows item info:false, shows icon preview:false, text size:10,
label position:bottom, color:{0, 0, 0}}
set background picture of icon view options of window 1 to file
"Western 4:Tout Gerbino:pour ebay:_X10873à10876ƒYK:#X10873.JPG"
«data Toke06B85CD0»
(*point 2*)
get properties of icon view options of window 1
{class:icon view options, arrangement:arranged by name, icon size:
128, shows item info:false, shows icon preview:false, text size:10,
label position:bottom, color:{0, 0, 0}}
(*point 4*)
get background color of icon view options of window 1
{0, 0, 0}
end tell
I don't know the meaning of «data Toke06B85CD0»
Maybe it is the canonical form of the given instruction.
It's sure that it isn't an error message because no error is trapped.
The displayed properties of the icon view options are a bit
"surprizing".
background color is named color
and background picture is not returned.
It seems that this result doesn't match the dictionary statements:
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
(small 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
(small 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
This is what I get under 10.4.11.
As you see, the defined Background picture property is not returned
and the defined Background color is returned with an alternate name.
Yvan KOENIG (from FRANCE lundi 2 juin 2008 17:45:21)
_______________________________________________
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