Using Automator to create script

What I'd like to do is use Automator to create a script that will open an image as soon as it is transferred to a specific folder. I'm trying to generate some extra income by doing a bit of photography. Since my photo gear is not wireless or bluetooth capable, I'm going to transfer the image from the camera to my MacBook via an Eye-Fi card. Once the image is transferred into the designated folder, I'd like the script to open the file in either Preview, Aperture, or Photoshop so I can see if I need to re-shoot the image. Is that possible? I'm just not sure how to do it in Automator. Thanks to all.
-- Dennis

Unless I misread your post this should be simple. The steps below are for the Snow Leopard version of Automator but will be similar for other versions. I had the test file open in Preview because I do not have Aperture installed but there should be a similar Automator action for it.
1. Create the folder that you want to drop the photos into and put it in a convenient place. I used the Desktop.
2. When the opening dialog appears choose Folder Action.
3. When the next Automator window appears notice the drop down menu that allows you to choose a folder. Click here and choose the folder you created earlier.
4. Find the Automator action "Open Images In Preview" and drop it into the window's right side as the only step/
5. Save your work.

Similar Messages

  • Using Automator to create a text box of certain size

    I'm very new to using automator... in fact I haven't used it at all, but I am wondering if I can use it to create a text box of the same size each type to type in within preview (a PDF document).  Basically I want to click or push something and have a text box be generated that is the same size each time.
    Thanks!

    1. In the Finder actions you will need:
    - Get Specified Finder Items, and point it towards the folder that will contain the movie.
    - Get Folder Contents - to get what's inside the folder.
    - Filter Finder Items - set to filter by 'Name Extension' 'Is equal to' 'mov' and make sure all your video files have the right extension...
    - Open Finder Items - in QT Player - note that this might cause problems if there are multiple files in the folder...
    Then from the QT Player actions:
    - Play Movies.
    2. Save As... Application, then after saving, drag the app into the login items for the user account.
    3. That's going to need some AppleScript, but this thread should get you started:
    http://discussions.apple.com/thread.jspa?threadID=455825&tstart=0
    Ian

  • Using Automator to create a "video server"

    I'm looking to turn an Xserve into a video server for a digital signage situation. I know I can use Automator to open a video file in Quicktime and automatically play it full screen, however, is it possible to do the following with automator (or in some other easy fashion):
    1. Have it go into a designated folder and open up the video file in that folder no matter what the files name is. (So I can update the video content monthly and just copy the new file into the folder and not have to change anything in the Automator script. I could always give the file the exact same name every month, but it would be nice if I didn't have to.).
    2. Automatically run the Automator script on system boot - so we can boot up the Xserve in the morning with 1 button and once the OS is up it automatically starts playing the video file.
    3. Last, (and this is probably the hard one), any thoughts on a way I can get the server to play a file to its end, and then check and see if there is a newer file present before looping? If not, it continues looping the same file, if so, it begins looping the new file instead? I'm guessing this would be more of an Applescript thing than Automater? This would be for a "content update while playing" situation.
    I may not even mess with number 3, but the first two are a must. I'm not asking that you take time to develop working code for all the above, just letting me know that I can do it and whether I should be looking at Automater or Applescript for certain functionality would be fine and I can further research from there.
    Thank you.
    Don Hertz

    1. In the Finder actions you will need:
    - Get Specified Finder Items, and point it towards the folder that will contain the movie.
    - Get Folder Contents - to get what's inside the folder.
    - Filter Finder Items - set to filter by 'Name Extension' 'Is equal to' 'mov' and make sure all your video files have the right extension...
    - Open Finder Items - in QT Player - note that this might cause problems if there are multiple files in the folder...
    Then from the QT Player actions:
    - Play Movies.
    2. Save As... Application, then after saving, drag the app into the login items for the user account.
    3. That's going to need some AppleScript, but this thread should get you started:
    http://discussions.apple.com/thread.jspa?threadID=455825&tstart=0
    Ian

  • Created FK using sql but "CREATE SCRIPT" not same

    I used this to create a FK relationship between  a Parent and Child table.
         ALTER TABLE [dbo].[Child]
         ADD  CONSTRAINT [FK_Child_Parent]
         FOREIGN KEY([Pid])
         REFERENCES [dbo].[Parent] ([pid])
         GO
    When I scripted the relationship (under SSMS) this was returned....
         ALTER TABLE [dbo].[Child]  WITH CHECK ADD  CONSTRAINT [FK_Child_Parent] FOREIGN KEY([Pid])
         REFERENCES [dbo].[Parent] ([pid])
         GO
          ALTER TABLE [dbo].[Child] CHECK CONSTRAINT [FK_Child_Parent]
          GO
    Note the addition of "CHECK CONSTRAINT" and now there are two statements What does that do that my original statement didn't?
    TIA,
    edm2

    It does nothing different.  This is just another instance of SSMS explicitly scripting out the current state of the object, and explicitly specifying every possible option, even if the current value is the same as the default setting.
    The first statement creates the constraint, checks the existing data and enables the constraint.  The second statement enables the constraint.
    The reason it uses two statements is probably because you cannot create a CHECK CONSTRAINT and disable it in a single statement.  If you want to, you must use two statements.  So SSMS appears to be coded to always use two statements: one to create
    the constraint and one to set it's enabled/disabled state.  IE because it sometimes requires two statements to create a CHECK CONSTRAINT in the desired state, SSMS always uses two statements, because it's simpler to code the script generator that way.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Use Automator to create new subfolders in a selected folder

    This seems like it should be easy to accomplish, but I have had no luck.
    I want to be able to select a folder, and then run an Automator Service to create a specific set of subfolders within the selected folder.
    I am able to set up automator to create the subfolders, but it does so in the folder containing the selected folder.
    Any suggestions on how to accomplish this simple task?

    Which type of variable should I choose? I tried "text" but there's no way to set it to "input"? There are many Variables in the Library.
    Here's how I have things set up now, I thought the "Service receives selected 'folders' in 'Finder'" (at the very top of the workflow area) would pull in the selected folder.
    Thanks!

  • Problem using Automator to create "Watermark PDF Documents"

    After having updated our macs from Mavericks to Yosemite, the "Watermark PDF Documents" using Automator is no longer working.

    Hi Miykael,
    Do you have flash player installed on your system for that browser? Did you tried accessing that pdf file from a different browser?
    I would also recommend you to refer this KB Document : https://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html
    Regards,
    Rahul

  • Using Automator to create sequential folders

    I'm trying to make an Automator workflow that will grab a file, create a folder with today's date, create a new sequentially numbered subfolder, and copy that file into it.  Essentially "To Post/2013_06_11/1", then on the next run it will make "To Post/2013_06_11/2", etc.  I can get this to work once, but after the initial "1" folder is created I can't get it to make 2, 3, etc when I run it later. I can get this to work if I make all folders at once, but that doesn't fit our pipeline as we drop files throughout the day. Is there a way to do this in Automator, or does it require an Applescript to recognize the existing numbered folders? Thanks!

    So after a lot of tweaking, I think I have it working. Two problems I encountered with Camelot's script were getting errors while creating the very first folder, and when the folder numbers get into the double digits it was only looking at the last digit (11 would be followed by 2, for example). This is what it looks like now- it's probably pretty inelegant, but it works:
    New Folder: Today's date
    Set Variable: Today's date folder
    New Folder: named 0 in Today's date folder
    Set Variable: Folder 0
    Get variable: Today's date folder
    Get folder contents
    Sort Finder items by name, ascending
    Run Camelot's Applescript, modified
    on run {input, parameters}
              tell application "Finder"
                        set n to name of last item of input
                        return n + 1
              end tell
    end run
    Set variable: New sequential number
    New folder: named new sequential number, today's date folder
    Set variable: New sequential number folder
    Get selected Finder items
    Copy Finder items to New sequential number folder
    Get Variable: New Sequential Number
    Run Applescript:
    on run {input, parameters}
              display dialog "Posted to #" & {input}
              return input
    end run
    (this shows a window showing what number it's been posted to)
    Get Variable: Folder 0
    Run Applescript:
    on run {input, parameters}
              tell application "Finder"
                        delete {input}
              end tell
              return input
    end run
    (I had to do a script to delete the folder from a network)

  • Search informatio​ns about using XML to create scripts (automate tests)

    Hello,
    I search some (A LOT OF...) informations  about using XML in Labview. I know that Labview use a specific schema for XML, but I search examples or tutorials.
    My aim is to control a VI with a script in XML, I would know if I can generate "while loop", modified attributes etc... with my XML file?
    Bye

    Hi leo,
    first for all others: this is related to this thread!
    Then:
    Your script should be handled by LabView in an interpreter-style. So you read in the script and parse the commands. For each command that is supported you have to provide the functionality in a state-machine like handling routine.
    I would stay away from the before mentioned "LabView scripting", atleast for production-type programs as LV-Scripting is not supported by NI (and not easy to handle...)!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Can I use Automator to create a multi-page PDF from a selection of images?

    Well can I? I have looked at Preview extensively but found no option to create a multi-page document from all open images. I can create single-page PDF's easily, but that's not what I want.
    Does it make a difference if they are TIFF, JPEG, etc?

    Take a look at
    PDFLab
    It will create a multi – page .pdf from a folder of .jpgs. I am ** guessing ** it will work with .tiffs.
    No Alibi.
     Back up what you can't afford to lose.   Mac OS X (10.4.10)  

  • How do I create a automated file backup script?

    I need a backup script to move files  from the MAC to Google Drive everyday at a certain time.  I tried using automator to create a calendar flow but it does not run when I set it up in calendar.  Can someone provide me a simple script template with Apple script or tell me how to do this?

    How are you backing up?   The Automator Calendar alarm should work.  Test with Automator first by creating a Workflow, then see if it works within Automator when you click "Run" 

  • Delete duplicates using Automator or applescript??

    Every time I move a photo from one iPhoto album to another I seem to create another duplicate-I'm really annoyed at the way iPhoto is written -who wants to go into a huge, unsorted- iPhoto library and delete stuff? Is there a way I can use automator or apple script to delete a photo from one album when it is moved to another? Also , when I use PhotoShop Elements to Browse for an album made in iPhoto-the only way I can find an album is to go through every year-iPhoto can't be this bad , can it?
    One more question-If I delete a photo in an album, it still remains in the library, how do I delete that without sorting through hundreds of pictures or using spotlight?
    mac book pro 17inch   Mac OS X
    mac book pro 17inch   Mac OS X (10.4.6)  

    whidbey:
    Welcome to the Apple Discussions. Photos you add to an album are only links to the original photo in the library. You are not duplicating files in doing so. The only time a file is duplicated is when you edit a photo and then there is a modified version created and placed in the Modified folder. You don't want to go about deleting files from within iPhoto Library folder via the Finder - Don't tamper with files in the iPhoto Library folder from the Finder.
    Albums in iPhoto are only virtual containers. There is no way you can find it and it's contents via PSE's browser. It does not exist outside of iPhoto. When you move a photo from one album to another and you don't want it in the first album you'll just have to delete it manually from that album. Remember if you delete a photo from the main library you'll be deleting every occurrence of it in your library.
    If you're trying to use Photoshop Elements to edit a photo, you don't need nor want to open it via the Finder. Instead, use iPhoto's preferences to use PSE as the editor of choice when you double click on a thumbnail in iPhoto. The only caveat to that is if you create a layered image or otherwise create a file that requires you to save it as a psd file, you must either flatten it and save as a jpg without a name change or do a Save As to the desktop and then import it as a new file. Any subsequent edit on that psd file can be make normally.
    Do you Twango?

  • Using Automator to Save a Version?

    I was trying to use Automator on 10.7.4 to get this task done.
    So I have buch of encrypted pdf files.
    I have the passwords to open the file to read or print it.
    I want to decrypt all of them for access conveniency but I don't have the permission password to change the pdf security property.
    I figured a way around it.
    I found that I could double-click these pdf files with Preview.
    The Preview then asks for password.
    I copy & paste the password and the pdf is opened.
    Then after I press " Save a Version" , there is a window asking me to "Duplicate",.
    After I press "Duplicate", Preview will save a copy of that pdf file without encryption.
    It is easy enough to do that on several pdf files. However, I have hundreds of these pdf files.
    I was trying to use Automator to create a workflow but the main issue is that I did not see Save a Version action under PDFs in Automator.
    I also tried recording it but it was not successful.
    Any suggestion or trick to setup Automator for my task? Thanks.

    This is not possible in automator. Maybe applescritpt.
    Anybody else out there that would know?

  • Generate Create Script creates scripts that won't run: ORA-00922: missing..

    I'm having trouble running a script that I created by using the Generate Create Script tool in Oracle Explorer. I created the following script by running the Generate Create Script on a table called, "ASPNET_APPLICATIONS":
    CREATE TABLE "DEV"."ASPNET_APPLICATIONS" ("APPLICATIONID" NUMBER,"APPLICATIONNAME" VARCHAR2(256 BYTE),"DESCRIPTION" VARCHAR2(256 BYTE)) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 65536 MAXEXTENTS 2147483645 MINEXTENTS 1 )
    CREATE UNIQUE INDEX "DEV"."PK_APPS" ON "DEV"."ASPNET_APPLICATIONS" ("APPLICATIONID" ) TABLESPACE "USERS"
    CREATE UNIQUE INDEX "DEV"."IDX_APPS_APPNAME" ON "DEV"."ASPNET_APPLICATIONS" (LOWER(TRIM("APPLICATIONNAME")) ) TABLESPACE "USERS"
    ALTER TABLE "DEV"."ASPNET_APPLICATIONS" ADD ( CONSTRAINT "SYS_C004598" CHECK ("APPLICATIONNAME" IS NOT NULL) ENABLE VALIDATE )
    ALTER TABLE "DEV"."ASPNET_APPLICATIONS" ADD ( CONSTRAINT "SYS_C004597" CHECK ("APPLICATIONID" IS NOT NULL) ENABLE VALIDATE )
    I then deleted the table in my Oracle 10g database and ran the above script to recreate the table. The result is that I get an error the following error, ORA-00922: missing or invalid option. Does anyone know how to resolve this?
    Is anyone aware of any bugs in the Generate Create Script option of Oracle Explorer?

    Okay, I think I found my problem.
    I was trying to run the script created by Oracle Explorer directly from a Database project I added to my Solution in Visual Studio. Visual Studio is probably using some SQL Server specific tool when I select the Run or Run On option on the script.
    When running the same script directly in the Oracle 10g Home Page (Home > SQL > SQL Scripts), I had no problem. Everything executes correctly.
    Is anyone aware of another way to run Oracle scripts directly from Visual Studio? Do I have my project setup incorrectly? This is the first project I've used .NET and Oracle together, so if anyone has any suggestions, I'd really appreciate the help.
    Thanks,
    Mycole

  • HT2488 How do I create a workflow in Automator or a script in AppleScripts to download an excel file from a specific webpage?

    I would like to create a workflow in Automator or a script in AppleScript (or a combination of the two), that opens Safari to a specified page and downloads an excel file from this page and saves the downloaded document to my desktop.
    Is this something that be done? If so, how?
    I have so far been able to build a workflow in Automator to open Safari and added an AppleScript that takes Safari to a specific page that has an Excel document.
    I can't figure out where to go from here... Any help would be apprecitated.
    Thanks!

    Would you have the web address the excel sheet is on?
    Is there a simular web page you could point to if not?
    Would there be a copy of the file on an FTP page.  This would be easier. 
    curl
    http://www.cyberciti.biz/faq/mac-os-x-terminal-download-file/
    http://www.thegeekstuff.com/2012/04/curl-examples/
    http://curl.haxx.se/docs/manpage.html
    Macintosh-HD -> Applications -> Utilities -> Terminal
    # Press return to run a command.
    the curl is a terminal command ( Unix ).  It allows you to read a file off of the web.
    man curl
    provides cryptic information on the commnad curl.
    press the space bar to advance  a page.
    press letter to q to quit.
    What you may have to is to read in the web page as a text file.  Go "fishing" through the page to find the excel file you need.  Once you find the file, you can use curl to read the file.
    curl is a very full featured command.  (read complex to figure out ).
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set desktopPath to (path to desktop) as string
        log "desktopPath = " & desktopPath
        set unixDesktopPath to POSIX path of desktopPath
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • Using Automator to Batch Create PDFs

    I've been trying to find a way to make an Automator workflow that will take the name of a folder and combine it's files into a PDF with as little manual input as possible and have finally figured out how to do so. I've seen others ask how to do this for a while so I wanted to share how I did it.
    Why would you want to create PDFs? If you have scanned books, photos, documents or anything else on your Mac, you can create PDFs out of them. You can then store these in iTunes and either read them using Preview on your Mac or iBooks on your iOS device.
    What this workflow will do:
    Take a folder with images, get the folder's name, and create a PDF of the images with it's name.
    On the next pass of the workflow, it will send the previous folder to the trash.
    Create/have a backup of your files!
    Create a folder somewhere that you can drop your folders in. Name it Automator Dropbox. You can create one wherever you want, but this workflow was created with Automator Dropbox in mind so you'll need to change it as necessary.
    Open Automator and create a new workflow.
    Find Finder Items
    - Search Automator Dropbox
    - [All] of the following are true:
    - [Label] is [Red]
    This will search for any folders that were done before.
    Move Finder Items to Trash
    This will move the previous folder/files to the trash.
    Ask for Finder Items
    - Prompt: [Choose a Folder]
    - Start at: Automator Dropbox
    - Type: [Folders]
    This will ask you to choose the next item to convert to PDF.
    Set Value of Variable
    - Variable: pdfvariable
    This will take the name of the folder you just selected and use it to to rename your PDF.
    Label Finder Items
    - [Red]
    This will mark the folder you're working on for deletion the next time the workflow is ran.
    Get Folder Contents
    This will grab all the image files within the folder so that it can create a PDF out of them.
    Scale Images
    - To size (pixels): 1600
    This will scale the maximum dimension of your image down (or up) to 1600px. I find this to be the sweet spot for performance on the iPad 3, and it looks just fine. If the maximum dimension of your image is lower than 1600px, I'd create a duplicate workflow of this and leave out this step; otherwise you will be upscaling and your image won't look as good. You can also leave this step out if you want your original image size kept, but on the iPad 3 and below there will be a delay going from page to page.
    New PDF From Images
    - Save Output to: [Desktop]
    - Output File Name: tempname
    This will save your finalized PDF to the Desktop. You can change this to whatever you want; I would suggest the Automatically Add to iTunes folder located in [Music > iTunes > iTunes Media > Automatically Add to iTunes]. You will find your PDF in the Books category in iTunes.
    Rename Finder Items
    - [Replace Text]
    - Find: tempname in [Full Name]. Ignore Case checked.
    - Replace: [pdfvariable] (Drag pdfvariable from the variables window into the text field for "Replace". If you don't see the variables, go to "View > Variables."
    You can't just drag the variable into the PDF name field in the step above, so this extra step is necessary. It will rename your PDF with the name of the folder it was created from. It will also add the full file path, which will be taken care of in the next step.
    Rename Finder Items
    - [Replace Text]
    - Find: Users/yourname/Documents/Automator Dropbox in [Full Name]. Ignore Case checked.
    - Replace: LEAVE EMPTY
    This will delete the name of the path from the name of your PDF. If your working folder is not Documents/Automator Dropbox, change it to whatever that is.
    If you're running this workflow on a bunch of folders, you can simply keep your cursor over the workflow's play button and press the right arrow + enter to select the next item in queue. This workflow was made for using a little human interaction as possible, so if anyone has suggestions on how to improve on it please post below.
    One last thing - if you're seeing a red folder when you run the workflow to choose a folder, it's because spotlight hasn't indexed it yet and the workflow could not find it to delete it. Just go on to the next item.

    Someone (not me) has created an automator workflow that does this, using a shell script that runs the "pstopdf" unix command. I just downloaded it and tested it on 10 .eps files. You will need to edit the first automator action in the workflow to find the eps files you want (by default it looks for all eps files on your computer), but once you do that, it works like a charm! Converted my eps files to pdf's. Of course, once they are pdf files, you can use automator to convert them to whatever format you want.
    http://mad-sci.blogspot.com/2007/12/why-i-hate-computers.html
    (link to the actual zip file containing the workflow below)
    http://www.physics.mcgill.ca/~burkes/code/PDFworkflows.zip

Maybe you are looking for

  • How to make a nested tween....I think?

    Can anyone help? flashCs4 I have an owl in 3 parts, body & 2 wings all are symbols (movie clips) I have the bird flapping from making motion tweens of the wings I would like to connect the bird....make it fly across the stage & increase in size (free

  • WDS deployment booting not working properly! filename incorrent?

    Hi! I recently set up a new Server 2012 and installed WDS using this guide http://technet.microsoft.com/en-us/library/jj648426.aspx I did a Active directory integrated installation and accepting any computer to boot from the wds files. But the boot f

  • Find links related to a file

    Hi, I'm with Dreamweaver 8. How can I find all the linked pages from and to a specific file ? It's easy to find broken links, but how about valid links ?

  • Logic Express 7.2

    How can I have either Garage Band or LE make my notations on scores while using a real instrument being played through an audio interface? Do I need additional software or hardware? I am new to imac, LE and GB. My experience factor is low, but I cont

  • Cant open raw+jpeg

    Hi-  have a Canon 50D and went to download to Macbook and now the files show .igy in front of image numbers- get message saying cant open them- this is all the info I have as a friend was using the camera and there not sure what they did to it- any h