• 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: file list as data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file list as data


  • Subject: Re: file list as data
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 23 Jul 2014 10:46:00 -0500

On Jul 23, 2014, at 7:58 AM, Jan E. Schotsman wrote:

@Luther    Why is it better to avoid Posix paths? The file references are used immediately in the script.

Probably just personal preference. Once upon a time (long long ago), I found that if I referenced all files and folders using only aliases, then I quit getting compile and run time errors. So, it became a habit.

You will need file references from time to time. Such as ...

tell application "Finder"
...
if (exists alias file linkName of subMboxFolder) then

where the file reference is within parenthesis. But, notice that it's constructed from the alias subMboxFolder.

There are, of course, places where posix paths are necessary. Such as in a 'do shell script ...'.
In that case, I use ...

quoted form of (POSIX path of mboxAlias)
do shell script "find " & the result & " -name " & msgFileName

for example.
 _______________________________________________
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

References: 
 >Re: file list as data (From: "Jan E. Schotsman" <email@hidden>)

  • Prev by Date: Re: file list as data
  • Next by Date: Re: file list as data
  • Previous by thread: Re: file list as data
  • Next by thread: Re: file list as data
  • Index(es):
    • Date
    • Thread