• 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: Copying the path of files selected in Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copying the path of files selected in Finder


  • Subject: Re: Copying the path of files selected in Finder
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Sun, 30 Apr 2017 08:57:18 +0900


On Apr 30, 2017, at 1:40, Yvan KOENIG <email@hidden> wrote:

Here is a sample script showing two ways to to trigger the handlers.

use myLib : script "fakeLib"

Is there a reason for this syntax ?
Can't use "fakeLib" work equally well ?

set aList to myLib's decoupe(theString, "vos")

Ok, so there is no way *not* to refer to myLib when you call one of its handlers right.

tell myLib
set theString to recolle(aList, "NOS")
end tell

I thought the terms used by the library were automatically imported with the "use" statement and there was no need to refer to it into the script.

But the thing is that without the use statement it is possible to call the handle with handler(...) of script "fakeLib", so what's the point of having a use statement in the first place ?

Jean-Christophe 
 _______________________________________________
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: Copying the path of files selected in Finder
      • From: Christopher Stone <email@hidden>
References: 
 >Copying the path of files selected in Finder (From: Jean-Christophe Helary <email@hidden>)
 >Re: Copying the path of files selected in Finder (From: Yvan KOENIG <email@hidden>)
 >Re: Copying the path of files selected in Finder (From: Jean-Christophe Helary <email@hidden>)
 >Re: Copying the path of files selected in Finder (From: Yvan KOENIG <email@hidden>)
 >Re: Copying the path of files selected in Finder (From: Jean-Christophe Helary <email@hidden>)
 >Re: Copying the path of files selected in Finder (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Copying the path of files selected in Finder
  • Next by Date: Re: Copying the path of files selected in Finder
  • Previous by thread: Re: Copying the path of files selected in Finder
  • Next by thread: Re: Copying the path of files selected in Finder
  • Index(es):
    • Date
    • Thread