• 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: finding newest file in a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding newest file in a folder


  • Subject: Re: finding newest file in a folder
  • From: Graff <email@hidden>
  • Date: Tue, 16 Mar 2004 00:20:35 -0500

On Mar 15, 2004, at 6:13 PM, Christopher Nebel wrote:

On Mar 15, 2004, at 12:52 PM, Deivy Petrescu wrote:

My point is, I believe that Posix path should return the quoted form or the posix path. After all if I want a path, I want a path, give it quoted if necessary. So if necessary, please understand this as a request for AS. Makes it simpler and more logical.

This is addressed in TN2065. First, there are uses for paths other than passing them as arguments to "do shell script", and quoting them would be incorrect in such cases. Second, "quoted form" is useful for many things other than paths. Therefore, we created two orthogonal operations instead of one fused one.

Hmm maybe an interesting solution would be to add in this sort of optional syntax:
posix path of fileString with quoting
or
posix path of fileString without quoting

Then have it default to "without quoting" if the optional term is not included, for backwards compatibility. This would be similar to all of the "choose file" type of commands:
choose file without multiple selections allowed

Yeah it's not much better length-wise than:
quoted form of posix path of fileString

But it is a bit more natural and less unwieldy. If you kept the "without" case to be the default then you could still do the "quoted form..." thing if you wanted to.

- Ken
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: finding newest file in a folder
      • From: Shane Stanley <email@hidden>
References: 
 >finding newest file in a folder (From: John Cochrane <email@hidden>)
 >Re: finding newest file in a folder (From: Deivy Petrescu <email@hidden>)
 >Re: finding newest file in a folder (From: Christopher Nebel <email@hidden>)
 >Re: finding newest file in a folder (From: Deivy Petrescu <email@hidden>)
 >Re: finding newest file in a folder (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: how to eject a firewire drive natively
  • Next by Date: Re: finding newest file in a folder
  • Previous by thread: Re: finding newest file in a folder
  • Next by thread: Re: finding newest file in a folder
  • Index(es):
    • Date
    • Thread