New topic: Setting a Background Picture Programmatically
<http://forums.realsoftware.com/viewtopic.php?t=29705> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message rbasic20091005153 Post subject: Setting a Background Picture ProgrammaticallyPosted: Mon Aug 24, 2009 1:15 am Joined: Sat Apr 04, 2009 5:10 pm Posts: 265 Hola, Is it possible to set a background picture of a folder or a volume programmatically? It doesn't look like we can do it with Apple Script. It will be nice if there's a shell command for that. Thank you for your advice. Tom _________________ Mac OS X 10.5.6/REALBasic 2008 R4 I say 'no' to MBS plug-ins. I boycott them. Top pony Post subject: Re: Setting a Background Picture ProgrammaticallyPosted: Mon Aug 24, 2009 2:01 am Joined: Sat Nov 11, 2006 2:43 pm Posts: 208 Location: DFW area, Texas, USA Dang! I was supposed to go to bed hours ago. My farrier is here in 5 hours presumptions: you have a disk image mounted with a volume name "Disk Image" on that volume is a image file called "1.png" modify according anyway, Applescript code: Code:tell application "Finder" activate make new Finder window to disk "Disk Image" set win to window "Disk Image" set p to icon view options of win set background picture of p to (item "1.png" of disk "Disk Image") end tell _________________ Fly like a mouse, run like a cushion, be the small bookcase. Dare to believe ? Beware the Aguamoose Man. Top rbasic20091005153 Post subject: Re: Setting a Background Picture ProgrammaticallyPosted: Mon Aug 24, 2009 2:13 am Joined: Sat Apr 04, 2009 5:10 pm Posts: 265 Oh, my gosh... You can do it with Apple Script!? Whoa... Muchas gracias, pony. _________________ Mac OS X 10.5.6/REALBasic 2008 R4 I say 'no' to MBS plug-ins. I boycott them. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
