Re: path to applications folder in 10.9
Re: path to applications folder in 10.9
- Subject: Re: path to applications folder in 10.9
- From: Shane Stanley <email@hidden>
- Date: Mon, 28 Oct 2013 10:18:19 +1100
On 28 Oct 2013, at 12:10 AM, koenig.yvan <email@hidden> wrote:
> Is one of you (maybe more) able to explain what appears to the old ape as an odd behavior ?
I can't tell you why, but I can give you an idea of what. If you enter this:
path to applications folder
path to At Ease applications folder
in Script Debugger and ask it to compile with raw syntax, you see this:
«event earsffdr» «constant afdrapps»
«event earsffdr» «constant afdmapps»
If you open the standard additions dictionary in ASE and save it as a .sdef file, you can search for afdr. You will see that it's the code for what path to returns, and you will see all the options and their equivalent terminology listed. So:
<enumerator name="applications folder" code="apps" description="The user's Applications folder"/>
And below you will see a similar list under the enumeration name of afdm, including:
<enumerator name="At Ease applications folder" code="apps" description="The At Ease Applications folder"/>
A quick test will confirm that path to accepts both afdr and afdm values as parameters.
Why is it using the afdm and not the afdr in the log? And curiously, why is it not doing it with the other entries that have the same matching four-letter codes, like At Ease documents folder, where it works the other way around? No idea.
I presume afdm is in there for backwards compatibility, although the At Ease entries are arguably taking it that to the point of ridiculousness. Maybe retirement is in order.
On 28 Oct 2013, at 3:00 AM, Deivy Petrescu <email@hidden> wrote:
> Anyway, the best way to refer to folders is using the 4 -letter code for the folders.
I don't know about "best", but it won't make any difference here.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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