Re: Rename Folder without it moving
Re: Rename Folder without it moving
- Subject: Re: Rename Folder without it moving
- From: Luther Fuller <email@hidden>
- Date: Wed, 29 May 2013 13:48:40 -0500
On May 29, 2013, at 1:32 PM, Jeff Hanlon wrote: Is there a way to retain the position by using an applescript or some additional bash command?
I tried this simple AppleScript …
set itemLoc to path to desktop set itemName to "untitled folder" set newName to "New Folder Name"
tell application "Finder" activate try set itemAlias to (item itemName of itemLoc) as alias on error beep return -- itemAlias does not exist end try -- change other attributes of itemAlias here set name of the result to newName -- do this last end tell
It worked with no problem. My experience is that changing the name should be done last if you are changing attributes other than the name.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden