• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Why must I double a command line to set the background picture?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why must I double a command line to set the background picture?


  • Subject: Why must I double a command line to set the background picture?
  • From: Emile Schwarz <email@hidden>
  • Date: Sun, 14 Feb 2010 02:40:48 +0100

Hi all,

the following script do nothing ('till I close and open the front window):

tell application "Finder"
set fw to front window
set background picture of icon view options of fw to item "Folder_Bkgnd.png" of fw
end tell



but the following script works fine (without closing/re-opening the front window):


tell application "Finder"
set fw to front window
set background picture of icon view options of fw to item "Folder_Bkgnd.png" of fw
set background picture of icon view options of fw to item "Folder_Bkgnd.png" of fw
end tell


Why ?
[in fact, I can eventually say why, but this 'feature' exists on other Finder commands - like update _reference_ with necessity - and is really annoying]



Emile

Hardware: MacBook UniBody 2008-11
Software: Snow Leopard revision 2 (10.6.2)
_______________________________________________
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
  • Follow-Ups:
    • Re: Why must I double a command line to set the background picture?
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Image Events and Preview
  • Next by Date: Re: Image Events and Preview
  • Previous by thread: Re: Image Events and Preview
  • Next by thread: Re: Why must I double a command line to set the background picture?
  • Index(es):
    • Date
    • Thread