Hi all.
everytime i use Finder’s Alias with AppleScript (finder’s alias is the real alias, command-m from the menu), the script use always original file instead of the alias.
So, in this case
on open these_items
repeat with i from 1 to number of items in these_items
set this_item to item i of these_items
do shell script "/bin/rm -r " & quoted form of POSIX path of this_item
end repeat
end open
if i drag an alias on the script, the alias remain alive, but the original file will be deleted.
So, if i want to delete ONLY the alias (file that I dropped)?
I’m study this script (drag an alias):
on open these_items
repeat with i from 1 to number of items in these_items
set this_item to item i of these_items
set the item_info to the info for this_item
set alias_var to alias of item_info
return alias_var -- I suppose that can be true (the file is an alias)
end repeat
end open
But why alias_var give me false?