• 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
Re: Was: Is the picture_folder of the screensaver in OS X scriptable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Was: Is the picture_folder of the screensaver in OS X scriptable?
  • Next by Date: Re: Scripting Startup Disk System Preference in OS X
  • Previous by thread: Re: Was: Is the picture_folder of the screensaver in OS X scriptable?
  • Next by thread: unable to do batch operations
  • Index(es):
    • Date
    • Thread