• 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 best practice questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File best practice questions


  • Subject: Re: File best practice questions
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 14 Mar 2008 21:53:43 -0400

I would just like to add that "file" and "posix file" are effectively
the same class, differing only in the way the specifier string is
parsed.  Behind the scenes I think "file" turns into a fileref and
posix file turns into a url, but that distinction is mostly invisible
to AS.  In fact, if the specifier string for "POSIX file" is a
literal, it will get translated to "file" form by Script Editor at
compile time.

Which transformarion might yield something that wouldn't actually
compile if you typed it yourself, but that's a separate issue.


On 3/14/08, Shane Stanley <email@hidden> wrote:
> On 15/3/08 11:07 AM, "Gary (Lists)" <email@hidden> wrote:
>
> > I see your semantic point
>
> It's not a semantic point -- it's a serious and important distinction: what
> compiles and what runs are two totally different things.
>
> > On your specific point, I can't get a "bad alias" to compile, OMM (x.5.2)
>
> So this won't compile?
>
> alias "blah:blah:"
>
> > Anyway, for purposes of running a script,  'alias "..."' must exist. (And
> > that's completely logical for what an alias is!)
>
> Right.
>
> > But, it's fine, in my opinion, to allow code that uses 'alias "..."' to
> > *compile* but still fail at *execute* if it's not there.  A developer
> should
> > be able to write a script, intended for another end user (who does have
> such
> > alias).
>
> A scripter always could, by using a variable for the path. In 10.5 they no
> longer have to, for better or worse.
>
> --
> Shane Stanley <email@hidden>
>
>
>  _______________________________________________
> 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
>


--
Mark J. Reed <email@hidden>
 _______________________________________________
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: File best practice questions
      • From: Shane Stanley <email@hidden>
    • Re: File best practice questions
      • From: Philip Aker <email@hidden>
References: 
 >Re: File best practice questions (From: "Gary (Lists)" <email@hidden>)
 >Re: File best practice questions (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Changing terminal title - all or nothing
  • Next by Date: Re: File best practice questions
  • Previous by thread: Re: File best practice questions
  • Next by thread: Re: File best practice questions
  • Index(es):
    • Date
    • Thread