Re: file list as data
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