• 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: What makes AppleScript difficult
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What makes AppleScript difficult


  • Subject: Re: What makes AppleScript difficult
  • From: "Gary (Lists)" <email@hidden>
  • Date: Wed, 05 Dec 2007 20:19:20 -0500
  • Thread-topic: What makes AppleScript difficult

"Skeeve" wrote:

> I still don't know how to conveniently handle filenames of files
> that don't yet exist

That's a red herring.  Or a black hole.  Or a white elephant.

If a file doesn't exist, then it can't possibly have a name.

An 'alias', which implies (by its name) a reference to something else, must,
therefore, exist before you can call it an 'alias'.

You are talking about 'strings'.  Filenames of files that don't exist are
just that: strings.

So, you are not experiencing a problem of AppleScript, but a problem of your
conceptualization of what is a file, what is a string and what is a thing
that refers to a thing (an alias.)

'POSIX path' is meant to give a potentially valid posix/unicode string
version of a (potential) path.  It's up to you to know whether or not that
thing at the end of the path actually exists already.

Make sense? ;)

Key Point WRT AppleScript:  any time you say 'alias' that thing MUST already
exist.
--
Gary


 _______________________________________________
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: What makes AppleScript difficult
      • From: Skeeve <email@hidden>
    • Re: What makes AppleScript difficult
      • From: Philip Aker <email@hidden>
    • Re: What makes AppleScript difficult
      • From: Doug McNutt <email@hidden>
References: 
 >Re: What makes AppleScript difficult (From: Skeeve <email@hidden>)

  • Prev by Date: Re: Any way to use "path to me" when a script/app is hidden
  • Next by Date: Re: Spell checking in Applescript
  • Previous by thread: Re: What makes AppleScript difficult
  • Next by thread: Re: What makes AppleScript difficult
  • Index(es):
    • Date
    • Thread