How can I create an alias of a selected file in Finder using Shortcuts?

I am trying to make a Shortcut that will make an alias of a selected file in Finder, then move the file to a central folder. I cannot find any command line in Shortcuts that will Make an Alias. Any help? Thank You!


[Re-Titled by Moderator]

Mac mini, macOS 15.3

Posted on Mar 13, 2025 12:24 PM

Reply

Similar questions

4 replies

Mar 13, 2025 3:02 PM in response to brba1

You're right. There's no built-in shortcut to make an alias, but it's not that hard to do via AppleScript, which can be part of your shortcut.


Here's a quick and dirty Shortcut that takes files via Quick Actions and makes an alias on the desktop.


For ease, the raw AppleScript is just:


on run {input, parameters}
	tell application "Finder"
		repeat with each_item in input
			make new alias to each_item at (path to desktop)
		end repeat
	end tell
end run


If you don't want to make the alias on the Desktop, enter the path instead of '(path to desktop)'. Finding the path can be tricky, but AppleScript's path to command will help... for example, you can simply say path to documents folder or path to home folder for your home directory, etc. or you can type it out using :-delimited path (e.g. "Macintosh HD:Users:username:Documents:My Aliases Folder")

Mar 14, 2025 10:09 AM in response to brba1

> If I want the alias created to be deposited back into the folder where the original file came from, do you know what command I can use?


Sure. Files have an inherent container property that maps to its folder on disk, so use that:


on run {input, parameters}
	tell application "Finder"
		repeat with each_item in input
			make new alias to each_item at (get container of each_item)
		end repeat
	end tell
end run




This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I create an alias of a selected file in Finder using Shortcuts?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.