|
|
Create a new folder in the current list-view directory
I'm afraid the original did not work for me when I selected a file; I believe because the path is set to a string instead of an alias. I am on 10.4.11, if that matters. In any case, there is a shorter way to get the parent folder, using the class "container," which allows it to remain an alias (like current Path). I also used class to check whether the selection is a folder. I didn't have the problem needing quit for System Events, but I used the more usual AppleScript exit of "return." I don't know how to make the name selected at the end either :-]
---
Create a new folder in the current list-view directory
I'm no expert on applescript (indeed trying to learn it right now) but that "as alias" does not seem to work correctly. In particular, I selected a folder and this script always seemed to create new folder at the same level as selected folder, not inside it.
Create a new folder in the current list-view directory
The line |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.28 seconds |
|