Applescript, iMovie and Automator problem

Hi,
Sorry for reposting from another area, but maybe this will fair better in the right section.
I'm trying to convert a .mov file to .mp4 using Visualhub and automator, but a step in my automator file uses an applescript step that just causes the automator flow to stop and the end and not gon one with the rest of the actions.
More specifically:-
1. I use my HD camera to film something.
2. Connect the camera to my mac.
3. Import the video using iMovie.
4. My Automator actions ask me to confirm that iMovie has finished the import
5. Then Ask for finder items, which is get the newly imported .mov into VisualHub
6. Run the problematic Applescript:-
on run {input, parameters}
--we need to unset the default timeout length of two minutes, we'll make it 45
with timeout of (45 * 60) seconds
tell application "VisualHub" to set VisualHub to load script (scripts path of main bundle & "/automation.scpt" as POSIX file)
tell VisualHub
LoadSettings("/Volumes/MyBook/hd.cam.settings.vhub")
--SetSaveLocation("YOURHARDDRIVE:Users:YOURNAME:Desktop:iphonemovies:temp")
AddFiles(input)
StartConversion()
QuitApp()
end tell
end timeout
return input
--delay 15
end run
Which I've used from this site (http://professafresh.wordpress.com/2007/10/18/fun-with-automator/) and just stopped the two lines with a comment marker.
What is supposed to happen after that is that
7. Automator asks to confirm that VisualHub has finished.
8. VisualHub quits
9. Finder finds the .mov that was created when the film was imported
10. Finder then moves the item to the trash.
So there is something going on with the applescript that causes the process to stop after the conversion.
Some points:-
1. I have used the VisualHub import and convert script step but the default settings are not what I'm after as I want the video resized to 960x540.
2. iMovie recognizes and keeps all the head info as long as the file name is the same. So if you skip over the thumbnail in iMovie the timestamp changes to reflect the time that the video was taken. If you convert the .mov to .mp4 the info is retained but with a much smaller video size.
I've tried to give as much info as possible, sorry if it's too much.
Regards,

You can do that all in iMovie
Select 300 photos set the length to 3:15 - Import
Select all in the timeline. Pick your transition. Set it to .29. Apply.
Daniel C. Slagle - Keeper of the "Unofficial" iMovie FAQ
http://iMovie.danslagle.com
Quad - 2.5 Ghz G5   Mac OS X (10.4)   GeForce 7800 GT, 3G RAM, 250GB & 500GB internals

Similar Messages

  • IMovie and Automator actions

    Hello, i do have a question and help about imovie and automator, i need to create an action:
    after i import photos to iMovie, i want to apply the same transition to 300 or + photos, and is a long process to do one by one and at the same time this transitions needs to be .29 on lenght and after the transition is applied to the images the clips need to be at 0:03:00 lenght, is all this possible or im asking to much, and pleaseeee don't tell me to use script cause i have no idea how to do it, thats why im thinking of automator...
    thank you guys
    iMac G5 2.1 Ghz. built in iSight   Mac OS X (10.4.3)   1.5GB RAM

    You can do that all in iMovie
    Select 300 photos set the length to 3:15 - Import
    Select all in the timeline. Pick your transition. Set it to .29. Apply.
    Daniel C. Slagle - Keeper of the "Unofficial" iMovie FAQ
    http://iMovie.danslagle.com
    Quad - 2.5 Ghz G5   Mac OS X (10.4)   GeForce 7800 GT, 3G RAM, 250GB & 500GB internals

  • IMovie and iPhoto problem after restoring iPhone 5 from backup

    Isnt iMovie and iPhoto supposed to be free for iPhone 5 when we bought it?
    When i first tried my iphone, imovie and iphoto is there. i even tested it. then after yesterday i restore it from my backup on my Macbook Air, those 2 apps are gone. I dont know what went wrong.
    My previous phone is iPhone 4. So supposedly i restore it from the iphone 4 backup data. I doubt that would be the problem, isnt it?

    iMoive and iPhoto are not free apps. If you purchased them on your iPhone they should available to download again on your new iPhone.
    -Doug

  • Photo booth, imovie and iphoto problem

    photo booth, imovie and iphoto are not working in my macbook pro. when i try to open one of these apps a question mark appears and i can not open any of them.

    Did you move any of those applications? A question mark in the Dock means that the original application cannot be found. You've either moved or deleted them. Try to do a Spotlight search for each to see if you can find them.
    Clinton

  • Imovie and iphoto problem

    I started a new movie in imovie and noticed i couldn't add photos from the "media" button(from iphoto). I restarted the computer and when i tried to open the movie, i got a message saying this movie was saved with an older version of imovie and will be changed if you try to open it here...I opened it anyway and all the video clips were in the trash. I still can't access iphoto from imovie and now all my photos in iphoto are gone! What did i go wrong?

    iMoive and iPhoto are not free apps. If you purchased them on your iPhone they should available to download again on your new iPhone.
    -Doug

  • Automator, iMovie and Applescript problem

    Hi,
    I'm trying to convert a .mov file to .mp4 using Visualhub and automator, but a step in my automator file uses an applescript step that just causes the automator flow to stop and the end and not gon one with the rest of the actions.
    More specifically:-
    1. I use my HD camera to film something.
    2. Connect the camera to my mac.
    3. Import the video using iMovie.
    4. My Automator actions ask me to confirm that iMovie has finished the import
    5. Then Ask for finder items, which is get the newly imported .mov into VisualHub
    6. Run the problematic Applescript:-
    on run {input, parameters}
    --we need to unset the default timeout length of two minutes, we'll make it 45
    with timeout of (45 * 60) seconds
    tell application "VisualHub" to set VisualHub to load script (scripts path of main bundle & "/automation.scpt" as POSIX file)
    tell VisualHub
    LoadSettings("/Volumes/MyBook/hd.cam.settings.vhub")
    --SetSaveLocation("YOURHARDDRIVE:Users:YOURNAME:Desktop:iphonemovies:temp")
    AddFiles(input)
    StartConversion()
    QuitApp()
    end tell
    end timeout
    return input
    --delay 15
    end run
    Which I've used from this site (http://professafresh.wordpress.com/2007/10/18/fun-with-automator/) and just stopped the two lines with a comment marker.
    What is supposed to happen after that is that
    7. Automator asks to confirm that VisualHub has finished.
    8. VisualHub quits
    9. Finder finds the .mov that was created when the film was imported
    10. Finder then moves the item to the trash.
    So there is something going on with the applescript that causes the process to stop after the conversion.
    Some points:-
    1. I have used the VisualHub import and convert script step but the default settings are not what I'm after as I want the video resized to 960x540.
    2. iMovie recognizes and keeps all the head info as long as the file name is the same. So if you skip over the thumbnail in iMovie the timestamp changes to reflect the time that the video was taken. If you convert the .mov to .mp4 the info is retained but with a much smaller video size.
    I've tried to give as much info as possible, sorry if it's too much.
    Regards,

    iMoive and iPhoto are not free apps. If you purchased them on your iPhone they should available to download again on your new iPhone.
    -Doug

  • I am trying to use imovie and i have never had this problem before. All of my videos are completly grey and when you try and play them all i get is a black screen but i still hear audio.  Can you please help and tell me what i need to do. Thank you

    I am trying to use imovie and i have never had this problem before. All of my videos are completly grey and when you try and play them all i get is a black screen but i still hear audio.  Can you please help and tell me what i need to do. Thank you

    Make sure all of the videos used in the project that is having that problem are from the same event. If they are from multiple events, move them all into one event.

  • I have a Panasonic FZ38 HD camera. I can load and view my hd movies onto iMovie with no problems via my camera or a card reader.  When I try to copy my hd videos from my old Windows pc to my new iMac, the picture speed has doubled but the sound is normal.

    I have a Panasonic DMC-FZ38 HD camera and have lots of hd movie clips stored on my old Windows Pc using Photofun software supplied by Panasonic, which I want to transfer to my new Imac computer.   I am able to copy my most recent movies that are still on the memory card from my camera onto Imovie and view them with no problems at all.  When it comes to copying my old existing hd movies stored on my Windows Pc (and which are no longer stored on a memory card), I discover that when I view them on the Imovie, the speed has doubled but the sound is normal.   In order to transfer my old movies I have copied them back  onto a memory card (SDHC - the same card as previously used) and then put the card back into my camera and then copied them onto my Imac via the camera USB.   I have also used a card reader but get the same result.     If I view the same movie through my camera, or look at it on my old pc, it plays at normal speed.    Does anyone have any ideas as to why this is happening please?

    have you read and watch the Tutorials..? :
    http://www.apple.com/ilife/tutorials/#imovie
    iM is a bit.. iffy, when it comes to the definition, what a 'camera' is. historically, only tape based machines were a movie-camera. nowadays still-cams allow movin' images too..
    but, as mentioned above: the intended workflow is: material from photo cameras (even when they move) => import via iPhoto; material from video cameras (even when they don't move.. ) => iMovie
    when the import is done, you'll notice in all iLife apps the 'media browser' - in iM09, on the very right, the icon with a camera on.. click it, presto, all (incl. your 'videos') your iPhoto Library at hand for usage in iMovie.
    watch this:
    http://www.apple.com/findouthow/movies/imovie08.html#tutorial=otherimport
    (about from midths of tutorial...)

  • Hi guys, I have a problem with my new macbook pro 15". I tried to updtate the apps (iPhoto, iMovie and Garageband), but an error was displayed "You have updates available for other accounts". I don't have other accounts!!! :(

    Hi guys,
    I have a problem, I have a new macbook pro. I updated the software without problems; then I tried to update iPhoto, iMovie and Garageband, but an error was displayed "You have updates available for other accounts". I don't have any other account, i tried everything found on the net but nothing seems to work...Please help me!!!!

    Same thing for me it writes "To update this application, sign in to the account you used to purchase it."

  • Applescript and automator

    I have studyed html for 3 days and wordpress for 3 days , word , excel for 5 days, and llustrator and photoshop 13 yeas ago for 6 months.
    and still now its so hard to understand some how.
    but I am in need of understading now with the printed documents from my computer.
    and I wonder , so there are many defferent way to communicate with anyone out side of the world, right?
    like I know email , fax, facetime,
    but there are other way now I think because of the documents I found.
    and also with applescript and automator can do anything possible like even the child can click one and start conecting etc..
    I have the copy from its ,
    does anyone have time to explain me what it is?
    It's not that of teenager who doesn't want paretns to know or else,
    but I am quite serious for my situations.
    Please Help !
    Mac OS snow leopard to lion to moutain lion,,,,,
    but I don't know when it started yet.

    Using JavaScript to script System Events wouldn't be any better, since it uses the same Apple Events mechanism (how well it uses it is another topic).  To hold down a key you would need to use something that has access to the deeper system APIs, most likely using Xcode.
    And yes, your code snippet will press the arrow key 5 times (I am guessing that the missing space in key code is a typo).  You can place the cursor in a bunch of text in another application such as TextEdit, and use your script to activate it before performing the key codes to get a better idea of what is happening (trying to reposition the cursor in the Script Editor will reveal a bug with the delay command).

  • I have a MacBook Air which has a camera installed in it but it doesn't seem to work for some things like iMovie and my security camera for emergencies. It does however seem to work for Photobooth and facetime. Please write back and help my mac's problems.

    It'd be nice if you could help me with my mac's problems so I can start using iMovie and my security camera again. Thank you too all that answer.
    --JaySwanny

    User Password Reset

  • I have problems with my films that become slightly jerky after I have imported and edited them in iMovie and then burned them onto a DVD using iDVD. I can see the weak jerkiness when panning in both laterally and vertically. I shoot with a camcorder Canon

    I have problems with my films that become slightly jerky after I have imported
    and edited them in iMovie and then burned them onto a DVD using iDVD.
    I can see the weak jerkiness when panning in both laterally
    and vertically.
    I shoot with a camcorder Canon Vixia HF10. The camera has been set to deliver HD quality (1920x1080). But I have accidentally filmed with a frame rate of 60 (?).
    When I import the films in iMovie I have been asked if I want to change to frame rate 30 (instead of 25). I have chosen 30.
    Could it be the setting of a frame rate 60 in my camcorder that causes jerkiness when panning or what else?

    I have problems with my films that become slightly jerky after I have imported
    and edited them in iMovie and then burned them onto a DVD using iDVD.
    I can see the weak jerkiness when panning in both laterally
    and vertically.
    I shoot with a camcorder Canon Vixia HF10. The camera has been set to deliver HD quality (1920x1080). But I have accidentally filmed with a frame rate of 60 (?).
    When I import the films in iMovie I have been asked if I want to change to frame rate 30 (instead of 25). I have chosen 30.
    Could it be the setting of a frame rate 60 in my camcorder that causes jerkiness when panning or what else?

  • I made a movie on iMovie and went to burn to DVD and of course I could not...contacted Apple and they said to download an app to help solve this problem...i did..so I could finally burn a DVD, but it will not play on my DVD player...HELP!!!

    I made a movie on IMovie and went to burn it to a DVD ...I could not do this so I contacted Apple..they had me download an App and then I could make a DVD...but it will not play on my DVD player...does anyone know how I can solve this problem.. I purchased this to make DVD's and now I can not do that!!

    This is a known issue.  It really comes down to two key factors - what type of DVD are you burning to + what type of DVD player you have.
    This article will help.  It's lengthy and can be technical in some parts but should shed some light on your problem.
    http://www.media.utah.edu/dvdworkshop/pdf/DVDCompatTest.pdf

  • Using Applescript and Automator to manage files and folders

    Hi all.
    I need to make a simple action via applescript and-or automator to take the file it's been applied to (via the services) create a folder around it with the same name as the file.
    So far, I've searched the web, found some solutions but none are really working.
    Here's the script I found :
    set myFolder to findFolder()
    tell application "Finder" to set myFiles to files of myFolder as alias list
    repeat with aFile in myFiles
      set bName to my baseName(aFile)
      tell application "Finder"
      set folderExists to exists folder bName of myFolder
      if not folderExists then make new folder at myFolder with properties {name:bName}
      move aFile to folder bName of myFolder
      end tell
    end repeat
    ---------------- HANDLERS ----------------
    on baseName(myFile)
      tell application "System Events" to set {fileName, fileExt} to {name, name extension} of myFile
      return text 1 thru ((get offset of "." & fileExt in fileName) - 1) of fileName
    end baseName
    on findFolder()
      activate application "SystemUIServer"
      -- Bug pointed out by Lauri Ranta http://www.openradar.me/9406282
      tell application "Finder"
      activate
      set mySelection to (get selection)
      if mySelection ≠ {} then
      set mySelection to first item of (get selection)
      if mySelection's class = folder then
      set currentFolder to mySelection
      else if mySelection's class = document file then
      set currentFolder to parent of mySelection
      else if mySelection's class = alias file then
      set currentFolder to original item of mySelection
      end if
      else
      set currentFolder to target of front Finder window
      end if
      end tell
      return (currentFolder as alias)
    end findFolder
    And here's a page where they explain how to use automator and the Services to do what I <allmost> want, with some adaptation.
    But it still doesn't work.
    http://hbase.net/2011/08/17/move-selected-files-into-a-new-folder-using-applescr ipt-and-automator/
    So if anybody has an idea n how I could do this ?
    It It could either be a folder action (I drag and drop the files into a folder and boom, they get their folder around them)that I would set on a folder on a network drive, or locally, it doesn't matter, or a service (right clic on the file and boom folder around it.
    So if anyone could help with this I'd be grateful...

    Hi,
    Make an Automator Service (Service receives selected "Files or Folders"  in the "Finder.app").
    Use this script in the "Run AppleScript" action:
    on run {input, parameters}
        tell application "Finder"
            repeat with aFile in input
                if class of (item aFile) is not folder then
                    set {tName, fileExt} to {name, name extension} of aFile
                    if fileExt is not missing value and fileExt is not "" then
                        set tName to text 1 thru -((count fileExt) + 2) of tName
                        tell (get container of aFile)
                            if not (exists folder tName) then make new folder at it with properties {name:tName}
                            move aFile to folder tName
                        end tell
                    end if
                end if
            end repeat
        end tell
    end run
    This script work on files with a name extension.

  • Problem with iTunes compatability with iMovie and iPhoto

    I purchased some music from the iTunes music store and wanted to use that music in a homemade DVD I made. I also have tried using the purchased music when I play a slideshow in iPhoto. In both instances, an error window popped up saying that I needed to launch iTunes and authorize the computer to play the song... Well I bougth the music on the same computer and it is authorized. I typed in the authorization anyways and then after that iMovie and iPhoto both pop up with an error saying that it can't use the file.
    Thinking it might just be one song file... I have tried this with many purchased song. I have had the same problem with all of the purchased songs I've tried.
    Are some purchased songs not compatable with the iLife applications? How can I fix this problem? I'm running iLife 05 and I have installed all of the updates, including the most recent...
    iTunes 6.0.2
    iPhoto 5.0.4
    iMovie HD 5.0.2

    Do you need to update Quicktime as well?

Maybe you are looking for

  • OS 10.8.2 - Click on Enter Time Machine - nothing happens

    Not sure if recent history matters, but including it.  Last week I had a problem with my display.  Took it in to Apple and had it repaired - new logic board installed.  Before taking it in, I decided to back up onto iCloud, which I had never used bef

  • Grant access based on application type?

    Hi, Is there a way to grant access to just some of the application types attached to a DIR? I would like to limit the users to open the CAD files but they should be able to open the PDF files attached. The idea is to create the PDF file automatically

  • Fetching freight charges for separately shipped sales order lines

    Hi, I am facing a problem for fetching the freight charges with respect to an invoice , from the Table : OE_PRICE_ADJUSTMENTS for the case of a sales order which has two lines and the first line is shipped once and the second line is shipped later. I

  • What is the best Internet security soft wear for mac

    What is the best Internet security soft wear for mac

  • Can I capture footage directly into a Mac

    Can't seem to find info on how to capture directly from a camera into a Mac using FCP X (10.1). I have a Mac Book Pro and and Imac 27" icore i7. My camera is a Sony NX5U. Is the work flow the same for other camrea's?