My goal is to check the original path of aliases in a folder and get it's extention.
I've found an AppleScript that works, but it only looks at the first file in the folder.
I have no knowledge of AppleScript, but i just want to change it so it looks at the SELECTED file in stead of the FIRST file.
AppleScript is also beyond me. But please explain. Did you just take a snippet of AppleScript and put it into a KM macro that you want to get to work? That seems to be the case because your AppleScript uses an undefined variable and you don't use the KM variable in your AppleScript.
As I said I'm poor at AppleScript, but why not try replacing "aFile" in your AppleScript to the value of the variable in the KM loop? It would probably take me a few minutes to find that code.
Here is an example I've used for getting and setting a couple of variables in an AppleScript snippet. Do you think you can give it a go from here? It's also explained in the KM wiki but it took me an hour to interpret that wiki to get this snippet to work.
This macro will produce a text list of paths to any and all selected alias files in the Finder.
It will fail silently for any selected file that is NOT an alias file.
I can easily produce the file extension as well, but you'll need to tell me your preferred output format.
You can do this yourself by iterating through the list and using the Get File Attribute action to extract the file extension.
Let me know if you need any more help with this.
Find Original Path of Alias Files Selected in the Finder v1.00.kmmacros (7.4 KB)
I bow to your expertise and authority. Thanks.
@gideonmurray, looks like Chris @ccstone has given you a solution.
If one of the above posts solves your problem/question as originally stated, please check the "Solved" checkbox (click for details) at the bottom of that post.
Otherwise, please post your remaining questions/issues about this problem.
If you have other questions, please start a new topic.