?
Solved

Launch a screensaver with applescript

Posted on 2006-04-17
5
Medium Priority
?
1,290 Views
Last Modified: 2008-01-16
I have am running OS X 10.3 on an emac.  I would like to be able to launch a screensaver of my choice with Applescript.  First where are the screensaver files stored and named? and secondly what would the Applescript be to open a screensaver?

Thank you so much!
Stephen
0
Comment
Question by:fmwebschool
3 Comments
 
LVL 53

Accepted Solution

by:
strung earned 1000 total points
ID: 16470782
0
 

Author Comment

by:fmwebschool
ID: 16471453

The problem is that I am a Windows user, I have a Mac, but I do not know how to write applescript.  So, looking at the code is not going to help me much :)

Thank you for the sites though, but this has to be pure applescript I can call from FileMaker Pro.

Thanks again :)
Stephen
0
 
LVL 2

Assisted Solution

by:MacSverre
MacSverre earned 1000 total points
ID: 16525114
The screen savers that come with the system are in:
/System/Library/Screen Savers/
The ones you have installed for alle users are in:
/Library/Screen Savers/
And finally, the ones you have installed for yourself only are in:
Library/Screen Savers/
in your home directory.

To launch a screen saver using Apple Script, try the following:

do shell script "/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -module 'Nature Patterns'"

Change the name withing the single quotes ( ' ) at the end of the command to launch another screen saver, taking care not to remove any quote characters. Note that the name is specified _without_ the file extension (.saver or .slideSaver).

Props to http://www.cocoadev.com/index.pl?ScreenSaverEngine via google. :-)

HTH!


     Sverre
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
This is a tech scam I recently helped my parents through.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question