• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rename Folder without it moving
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Rename Folder without it moving
      • From: Jeff Hanlon <email@hidden>
References: 
 >Rename Folder without it moving (From: Jeff Hanlon <email@hidden>)

  • Prev by Date: Rename Folder without it moving
  • Next by Date: Word 2008 script broken in Word 2011
  • Previous by thread: Rename Folder without it moving
  • Next by thread: Re: Rename Folder without it moving
  • Index(es):
    • Date
    • Thread