Re: Was: Is the picture_folder of the screensaver in OS X scriptable?
Re: Was: Is the picture_folder of the screensaver in OS X scriptable?
- Subject: Re: Was: Is the picture_folder of the screensaver in OS X scriptable?
- From: Camilla <email@hidden>
- Date: Sat, 23 Mar 2002 00:00:08 +0000
This from Martin Kuschel
>
Camilla, thank you for the quick response.
No Problem, Martin.
>
Do you have any idea if there is (for beginners like me ) a "starterscript"
>
somewhere to look for?
There probably is. Try searching with google or starting from Apple's own
AS pages. I don't use the OS X screen saver much - I'm still trying to
get over the loss of 'Setting Sun' - but your question prompted me to see
if I could take a little more control over the screen saver slide show
options.
Here's the result. This droplet/applet needs to live in the same folder
as a folder called "Screensavers" that you should make the source image
folder by choosing it in the Screen Saver prefs 'Configure' dialog. You
can make an alias of the script or put an instance in your finder window
toolbar for easy access. Turn a 'hot corner' on for quick activation of
the screen saver.
Drag one or more folders onto the droplet to make aliases of them in the
"Screensaver" folder, replacing any aliases that are already there.
Alternatively, use the script in applet mode by double-clicking it to
display a 'choose folder' dialog. Move the cursor into your hot corner to
see the result.
If you are pasting this script into Script Editor, you will need to save
it as an application.
on open pics
set theDroplet to path to me as alias
tell application "Finder"
activate
set theFolder to folder of theDroplet as string
set screenSaverStore to (theFolder & "ScreenSavers") as alias
delete every item of screenSaverStore
repeat with picFolder in pics as list
make new alias file to picFolder at screenSaverStore
end repeat
end tell
end open
on run
set theDroplet to path to me as alias
choose folder with prompt "Select a folder for the Screen Saver to use"
copy the result to picFolder
tell application "Finder"
set theFolder to folder of theDroplet as string
set screenSaverStore to (theFolder & "ScreenSavers") as alias
delete every item of screenSaverStore
make new alias file to picFolder at screenSaverStore
end tell
end run
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.