The "modern" library are supposed to be saved as packages : fakeLib.scptd
In such an item I stored the handlers : decoupe, recolle, remplace I stored it in "/Library/Script Libraries" but you may store it in "~/Library/Script Libraries/"
Here is a sample script showing two ways to to trigger the handlers.
use myLib : script "fakeLib" use scripting additions
set theString to "Pour qui sont ces serpents qui sifflent sur vos tĂȘtes" # 1st way set aList to myLib's decoupe(theString, "vos") log aList
# 2nd way tell myLib set theString to recolle(aList, "NOS") end tell
Yvan KOENIG running Sierra 10.12.4 in French (VALLAURIS, France) samedi 29 avril 2017 18:40:00
|