AppleScript Error
QuickTime Player got an error: cant make "my movie.mov" into type document.
tell application "Quicktime Player"
set the_movie to "DIRECTORY_TO_FILE"
open the_movie
end tell
Try this:
Code:tell application "Quicktime Player" set the_movie to "DIRECTORY_TO_FILE" open the_movie end tell
Place this in the appropriate part of rien333's code and it should work (it is for me at least). This still won't let you play before login but you can set it as a login item.
It does work, but it doesn't play in fullscreen and it also doesn't start automatically playing (While mine's does). And no matter how much you try, you can't play it before the login screen. I'm now working on a working apple script for automatically playing a movie fullscreen at startup. (All for you guys!) I also made a icon for this apple script a while back. If you want it you can always ask.
![]()
set question to display dialog "Would you like a welcome video?" buttons {"Nah, don't feel like", "Yes, thanks"} default button 2
set answer to button returned of question
if answer is equal to "Yes, thanks" then tell application "QuickTime Player"
set theMovie to "Macintosh HD:Users:rijnderwever:Movies:Nieuw project.mov"
set openMovie to open theMovie
present openMovie
play openMovie
end tell
if answer is equal to "Nah, don't feel like" then tell application "Welcome"
quit
end tell
Created the right code:Enjoy!Code:set question to display dialog "Would you like a welcome video?" buttons {"Nah, don't feel like", "Yes, thanks"} default button 2 set answer to button returned of question if answer is equal to "Yes, thanks" then tell application "QuickTime Player" set theMovie to "Macintosh HD:Users:rijnderwever:Movies:Nieuw project.mov" set openMovie to open theMovie present openMovie play openMovie end tell if answer is equal to "Nah, don't feel like" then tell application "Welcome" quit end tell
(Make sure you replace rijnderwever by your own username, etc. and save it as an application named "Welcome" without quotes)
I also have a pretty nice icon for this application, made by myself. So if you don't like the standard apple script icon, ask for it.
Nice script. I haven't tested it, but it looks good (and I presume you checked it out yourself). OP, save this as a script or application with Applescript Editor and add it to your login items under the Accounts Pane of System Preferences. Unfortunately, I really don't think you can place it before the login screen as that would require altering the boot sequence. Maybe someone else knows how...
It can't be that difficult. (one would think).
Every new mac plays a movie at the first startup.
It must be as the script doesn't do what the OP wants. You still need to log in.You think a 10 line script is complicated
It must be as the script doesn't do what the OP wants. You still need to log in.
dissolve said:Unfortunately, I really don't think you can place it before the login screen as that would require altering the boot sequence. Maybe someone else knows how...
It won't be possible to do this even by altering the boot sequence, as login items are user specific, so you have to choose a user to run them.
Also, I don't remember the OS X intro movie running before the login has been completed. I thought it played as soon as the system gets to the desktop in its first start, ie. before you have set passwords and login screens and all that.
You are correct. Just look at any of the gazillion unboxing videos on Youtube.I can't remember, but I think the movie played before providing the login screen.