Automator - Create Alias Broken?

Discussion in 'Mac Programming' started by rickpny, Dec 1, 2007.

  1. rickpny macrumors newbie

    Dec 1, 2007
    Not sure if this is user error, or if it is broken... I am using Leopard.

    I am trying to create a simple workflow which will take selected files and create an alias in a "Current Work" folder. This requires two actions:
    - Get Selected Items
    - New Aliases (changing "Desktop" to "Current Work")

    When I run this in the UI it works fine.

    When I save it and try to execute it, it doesn't work. When I go back to the script, it has reverted the New Aliases location to "Desktop". I also find this happens if I simply save it, close it, and reopen it.

    Anyone else see this behavior?

    Thanks in advance... -Rick
  2. rickpny thread starter macrumors newbie

    Dec 1, 2007
    Found a solution with Applescript

    Although I'm still convinced Automator is broken, I was able to put together a simple Applescript that would do the same thing. Once I bound it to a Quicksilver hotkey I was even happier:

    For anyone interested, my script is:
    tell application "Finder"
      copy selection to theSelected
      repeat with anItem in theSelected
        make new alias to anItem at folder "Current Work" of folder "Documents" of folder "rickp" of folder "Users" of startup disk
      end repeat
    end tell

Share This Page