Re: Copying the path of files selected in Finder
Re: Copying the path of files selected in Finder
- Subject: Re: Copying the path of files selected in Finder
- From: Christopher Stone <email@hidden>
- Date: Sat, 29 Apr 2017 19:18:54 -0500
On 04/29/2017, at 18:57, Jean-Christophe Helary <email@hidden> wrote:
use myLib : script "fakeLib"
Is there a reason for this syntax ?
Of course.
Can't use "fakeLib" work equally well ?
No. That's completely incorrect syntax. Ok, so there is no way *not* to refer to myLib when you call one of its handlers right.
Right.
But you don't have to use the long form like Yvan did: tell myLib set theString to recolle(aList, "NOS") end tell
You can do this instead:
------------------------------------------------------------------------------
use fLb : script "fLb"
set theStr to "Now is the time for all good men to come to the aid of their country."
set newStr to fLb's cng("t\\w+", "•", theStr)
# OR
set newStr to cng("t\\w+", "•", theStr) of fLb
------------------------------------------------------------------------------ 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.
This is true of applications – not script libraries.
You are required to use a reference to the library.
|
_______________________________________________
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