Mac Forums

Mac Forums (
-   Running Windows (or anything else) on your Mac (
-   -   Run applescript on start-up (

slugzzz 09-10-2007 03:25 PM

Run applescript on start-up
I was wondering if there is anyone out there who knows how I can have, without any kind of input, applescript run and hide itself. I am trying to set up a display at a university on a G4 with OS 9 that will boot a movie on start up and run it. I've written the applescript, but I need to have it be able to run the movie without someone physically pressing "run" and then have the applescript prompt window disappear. Any help will be greatly appreciated!



knightlie 09-10-2007 04:37 PM

On OSX you can open User Accounts in Prefs, display the logon items list and drag icons into it - that might work...?

Brown Study 09-10-2007 05:09 PM

I recorded this AppleScript by using a movie I downloaded and named movie (because I'm so original) and left on the desktop. But if you put the movie somewhere else, you'd have to supply the pathway in the third line, such as:
select file "" of folder "Movies"of folder "Media" of startup disk.

tell application "Finder"
select file ""
open selection
end tell
tell application "QuickTime Player"
play movie ""
end tell

Save the AppleScript as an application (next to where it says Format), and make sure Never Show Startup Screen is checked. Then place the AppleScript in the Startup Items folder inside the System Folder.

slugzzz 09-11-2007 01:51 AM

I figured it out. I just had to save it as an applet. I was wondering, now, if anyone knows what to add to a script to get the movie to loop itself automatically.. something like
tell application "Full Screen Video Player"

yes, I've tried the above script, and it does not work. Any ideas?

All times are GMT -4. The time now is 04:38 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.