• 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: Finder Renaming Unpleasant Surprise
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder Renaming Unpleasant Surprise


  • Subject: Re: Finder Renaming Unpleasant Surprise
  • From: Christopher Stone <email@hidden>
  • Date: Sat, 14 Jan 2017 01:43:29 -0600

On Jan 14, 2017, at 00:14, S. J. Cunningham <email@hidden> wrote:
Yeah, some other people said the same thing.  Looks like it was fixed in a later release than I have.  Meanwhile I just wrote a handler to check first.


Hey Steve,

I've been using this one for a long time:

exTant(_path) # Takes an HFS, Posix, or ~/Posix path as input.

-------------------------------------------------------------------------------------------
--ยป HANDLERS
-------------------------------------------------------------------------------------------
on exTant(_path) # Takes an HFS, Posix, or ~/Posix path as input.
   try

      

      if _path is "~" or _path is "~/" then
         set _path to (POSIX path of (path to home folder as text))

         

      else if _path starts with "~/" then
         set _path to (POSIX path of (path to home folder as text)) & text 3 thru -1 of _path

         

      end if

      

      if _path starts with "/" then
         alias POSIX file _path

         

      else
         alias _path

         

      end if

      

      return true

      

   on error
      return false

      

   end try
end exTant
-------------------------------------------------------------------------------------------

--
Take Care,
Chris

 _______________________________________________
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: Finder Renaming Unpleasant Surprise
      • From: "S. J. Cunningham" <email@hidden>
References: 
 >Finder Renaming Unpleasant Surprise (From: "S. J. Cunningham" <email@hidden>)
 >Re: Finder Renaming Unpleasant Surprise (From: Christopher Stone <email@hidden>)
 >Re: Finder Renaming Unpleasant Surprise (From: "S. J. Cunningham" <email@hidden>)

  • Prev by Date: Re: Calculate Current Year Quarter with Time Zone Using AppleScriptObjC
  • Next by Date: Re: Coercing ligatures to expanded characters
  • Previous by thread: Re: Finder Renaming Unpleasant Surprise
  • Next by thread: Re: Finder Renaming Unpleasant Surprise
  • Index(es):
    • Date
    • Thread