A terribly basic question. How do I put my Applescript where it should be?

Discussion in 'Mac Programming' started by AitchB, May 18, 2018.

  1. AitchB macrumors newbie


    May 18, 2018
    Hi everyone,

    This is my first post as I've only just started to try Applescript.

    I have a script that I wish to attach to a folder but cannot see how to attach it.

    The script was saved in iCloud/Script Editor
    I moved the script to ...>Users / me / library / scripts (on the iMac)

    I right click on the test folder and go to Folder Actions Setup...
    It will not show the Applescript.

    Can some kind person tell me what I am doing wrong and is there a very basic book, video or something that I could get some basic info before going any further?

    I do understand scripting and with a bit of help should achieve something but at the start, I am lost!

    Here's hoping,

  2. chabig macrumors 603

    Sep 6, 2002
    In Folder Actions Setup, click on the little plus sign at the bottom of the left column. That opens a file picker where you select your script.
  3. AitchB thread starter macrumors newbie


    May 18, 2018
    Thanks Chabig, I can do that but the script I want is not shown!
  4. chabig macrumors 603

    Sep 6, 2002
    You'll have to navigate to your Library/Scripts folder in order to see the file.
  5. AitchB, May 18, 2018
    Last edited: May 18, 2018

    AitchB thread starter macrumors newbie


    May 18, 2018
    This what I do:
    Wrote the script "Flickr". Saved it in iCloud Script Editor then moved it to the iMac - user / me / library / scripts
    I click on my desktop folder, "Test Folder" and click on Folder Actions Setup...
    Its window opens.
    In one window my "Test Folder" is selected.
    In the other window, I see "On" and "Script"
    I click the + sign and I receive a list of all the scripts available.
    My script "Flickr" is not listed!

    Hope that explains it better.
    --- Post Merged, May 18, 2018 ---
    My bad !!!

    I was moving it to my user/me/library/Scripts... etc.
    It should have been: iMac /library/Scripts/Script Editor Scripts/Folder Action Handlers
    (for anyone else that might get puzzled)

    Thanks. You helped clear my mind. Now off to play.


    PS It worked too !!!

Share This Page