Automator, creating a file with a variable name

Discussion in 'Mac Basics and Help' started by beige matchbox, Feb 9, 2010.

  1. beige matchbox macrumors 6502a

    beige matchbox

    Joined:
    Mar 16, 2005
    Location:
    Oxfordshire, UK
    #1
    Hey guys, I'm trying to make a little automator script that will upload an image and comment file to a little gallery I'm playing with :)


    So far my workflow is:

    Code:
    Copy finder items
        ~/oneperday/uploaded
    
    Scale Images
        To size (pixels) 1280
    
    Upload to FTP
    

    This works a treat, however, the php gallery I'm using wants a txt file with a name containing the file name of the image, eg. image.jpg and image.jpg.txt, As far as I can see there is no way of generating a text file with a name generated from the input file :confused:


    I want to end up with something like:

    Code:
    Copy finder items
        ~/oneperday/uploaded
    
    Scale Images
        To size (pixels) 1280
    
    New Text File
    
    Ask for Text
    
    Get Folder Contents
    
    Upload to FTP
    And I'm stuck on the file naming, as New Text File has a specific filename, Rename Finder Items doesn't seem to have anything useful to add :(

    Any ideas chaps
     
  2. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #2
    You may have to do some of it through the Run Shell Script action...
     

Share This Page