Kinda stuck here, is there a way to select a few files in the finder and make them into alias’s.
I dont want to use a choose folder prompt either.
Thanks for any help on this.
Kinda stuck here, is there a way to select a few files in the finder and make them into alias’s.
I dont want to use a choose folder prompt either.
Thanks for any help on this.
Hello.
This assumes you have selected the files in the front finder window. It returns a list of aliases.
tell application "Finder"
set sel to selection as alias list
end tell
Thanks for the info. however what I need is to create multiple FINDER ALIAS from a Selection.
Like this however this only works with one file.
tell application "Finder"
set sel to selection
set folder_to_alias to sel as text
set CacheFileName to ((path to documents folder) & "Get_Alias.app:Contents:Resources:CACHE") as string
set aliasName1 to make new alias file at folder CacheFileName to folder_to_alias
end tell
Hello.
This grabs the selection of the front finder window, and creates aliases into the folder you have specified as cache path.
If you’d like to drop the alias ending of the alias files, then you can change the coercion of the cacheFileName to alias.
tell application "Finder"
set CacheFileName to ((path to documents folder) & "Get_Alias.app:Contents:Resources:CACHE") as string
set sel to selection as alias list
repeat with anAlias in sel
make new alias file at folder cacheFilename to anAlias
end repeat
end tell
Thank you this is exactly what I needed.