I have just noticed a problem or bug in Mavericks (10.9.5). Here is the test script ...
tell application "Finder" activate set selList to get selection if (count items of selList) ≠ 1 then return end tell set folderAlias to (item 1 of selList) as alias log folderAlias as text
I ran this script from AppleScript Editor with various selections and obtained these results:
1. If the selection is any item except StartupDisk:System:Library: the correct path is logged.
2. However, if the folder Library within the folder System is selected then the script logs the incorrect path StartupDisk:Library:
This explains why I was getting an incorrect response from another script I was trying to run.
Does it explain any strange responses you have obtained ?
|