 |
 |
scripting question
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Apr 2002
Status:
Offline
|
|
I know this is probalby a very simple question, but how do you automate the desktop image using applescript in OSX ....
In OS 9, i have a script that tells the appearance to set the image of a monitor to whatever file I want automatically. In osX, however, I can't use appearance, and I can't find any support to tell me how to do it, not to mention that Apple Tech support doesn't know the first thing about applescript.
Any help would be appreciated.
Kris.
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Apr 2001
Location: Petersfield, UK
Status:
Offline
|
|
Using information in the Finder scripting dictionary, this seems to work:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
tell application <font color = red>"Finder"</font>
set desktop picture to <font color = red>"Cube HD:Users:jb8748  esktop:<font color = blue>8.</font>jpg"</font>
end tell
</font>[/code]
Is that what you wanted?
James
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Apr 2002
Status:
Offline
|
|
yes, I believe that that's exactly what I need. I'l try it out right away. It sounds like it should display a little faster as well, since it's bypassing the "appearance" app and going directly through the finder.
Thanks.
Kris.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Apr 2002
Status:
Offline
|
|
That did work, except now I'm having one more problem.... I can't figure out how to tell the finder to set the desktop picture of the second monitor. I thought that, like os9, I could say
Set the desktop picture of monitor 2 to "picture.psd"
unfortunately, when I tried that, it says that I can't put a number after 'monitor'
anyway, It's actually very important that I figure this out, so I hope that someone is able to help me. I couldn't find anything in the finder dictionary. Maybe someone could at least point me in the right direction.
Thank you,
Kris
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status:
Offline
|
|
setting desktop pictures for multiple monitors currently isn't scriptable.
I think it might be possible to write settings to the com.apple.desktop defaults domain and then post a certain CFNotification to get the Finder to re-configure itself from the new settings. But you certainly can't do that from applescript.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Apr 2002
Status:
Offline
|
|
Thank you. I kind of figured that that might be the case.... hmmm....
Perhaps I can script Quicktime Player to display images full screen on the auxillary monitor. It would probably run a little slower than going straight through the finder but it should work, no?
I really don't have time to learn a programming language, and I don't want to pay for someone to write this for me, although I may end up having to anyway.
Alternatively, is there an easy way to get rid of the menu bar on the top of OSX, and to set the display dialog window to appear on another monitor?
-kris
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|