Re: AppleScript Studio & File Paths
Re: AppleScript Studio & File Paths
- Subject: Re: AppleScript Studio & File Paths
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 12 May 2008 22:55:08 -0400
You're making this more complex than it needs to be. No need for do
shell script; you want to rename a file without moving it, when you're
not necessarily in the same directory; while that's complicated to do
with mv and absolute POSIX paths, it's trivial with the Finder or
System Events. Try this:
set myFile to choose file
set newName to "." & name of (get info for myFile)
tell application "System Events" to set name of myFile to newName
_______________________________________________
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