Announcement: Upgrade to macOS Mojave

With features like Dark Mode, Stacks, and four new built-in apps, macOS Mojave helps you get more out of every click. 
Find out how to upgrade to macOS Mojave > https://support.apple.com/macos/mojave

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Question:

Question: Automate aliases creation with automation

Hi,


I need to create a folder action to automatically create an alias when a new folder is created.

The action should monitor a specific folder and once it notices a new folder, create an alias and move it into a specific folder.


Can anyone help me with this, please?


Many Thanks


John

Posted on

Reply
Question marked as Helpful

Apr 24, 2018 8:59 AM in response to johnbiondini In response to johnbiondini

Simple.


In the example below the folder enabled is called Test.


The Output creates an Alias on the Desktop. You can change the source or the destination easily.


Create a Folder (on your Desktop or wherever)

Open Automator

Choose Folder Actions Script

Copy the workflow below.

Done.

User uploaded file

There’s more to the conversation

Read all replies
Question marked as Helpful

Apr 24, 2018 8:59 AM in response to johnbiondini In response to johnbiondini

Simple.


In the example below the folder enabled is called Test.


The Output creates an Alias on the Desktop. You can change the source or the destination easily.


Create a Folder (on your Desktop or wherever)

Open Automator

Choose Folder Actions Script

Copy the workflow below.

Done.

User uploaded file

Apr 24, 2018 8:59 AM

Reply Helpful (1)
Question marked as Helpful

Apr 24, 2018 8:58 AM in response to johnbiondini In response to johnbiondini

Likely.


If it is how do you connect to the server?

smb connection?


If so ensure it is mounted otherwise there will be issues.

I'd also add the server shortcut to my Dock at the bottom of the screen and to your login items so when you login it attempts to mount it.

Apr 24, 2018 8:58 AM

Reply Helpful (1)

Apr 24, 2018 9:22 AM in response to sabatica In response to sabatica

Just tried, it correctly goes through the server script but still cannot find files inside the folder.

I tried with two folders on my desktop and the result is still the same... weird? (obviously, I have deleted the Specified Servers in this instance).

Apr 24, 2018 9:22 AM

Reply Helpful

Apr 26, 2018 2:37 AM in response to sabatica In response to sabatica

I actually tried again this morning and it started working, the only problem is that this script creates an alias of both folders and files inside these folders without the same structure, every file is in the "New Aliases" folder I have selected outside their original folder.

Is there any chance I can do this while keeping the same structure?


Thank you so much for your help. 🙂

User uploaded fileUser uploaded file

Apr 26, 2018 2:37 AM

Reply Helpful
User profile for user: johnbiondini

Question: Automate aliases creation with automation