Is This Possible ...?

Greetings.

So I bought my ex an iBook, and our anniversary is coming up. What I’d like to do is write an agent that will play a rather lengthy sound file from The Flintstones on that day (that rather tedious ‘Happy Anniversary’ song, sung by a bunch of waiters), and sleep for a year … then do it again next year :oP

Naturally, she would delete the sound file as soon as she finds it … so I need to make the sound file invisible. Can’t put the sound file in a folder, because she may trash or rename the folder, so ideally, the invisible sound file would sit on the Desktop.

I have a script written already that dumps her browser’s cache file set to run on shutdown, so I could use that to activate the agent in the appropriate month … and, of course, the agent will have to be hidden also.

The questions:

Is there a way to make the sound file invisible via AppleScript?

Is there a way to make that sound play while still invisible?

Is there a way to hide the agent?

Thanks for the assist …

–gdw

:slight_smile: The sound file can be made invisibile using Apple Script and employing the File Visibility Osaxen (I believe available in MacScripter Scripting Additions)

:slight_smile: The sound file will play while invisible using the set sound volume & play sound commands from “Jon’s Commands” Osaxen also available in the Scripting Additions.

:smiley: The agent can also be made invisible and activated from within the “dump browser cache” script which you have already written.

http://www.osaxen.com/file_visibility.html

http://osaxen.com/jons_commands.html