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:08:38 +0000
As a postscript to my previous note, you may want to put an 'activate'
line in the applet section of the script's Finder tell block. Here's the
slightly revised script:
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"
activate
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
The 'run' block that encloses the second half of the script is not
needed, I think, but it makes me feel more comfortable in a dual-function
script like this.
HTH
Camilla
_______________________________________________
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.