You are not logged in.
Pages:: 1
I installed mac OS Mojave on my machine last night and now I have a bunch of missing dictionary terms in my library of scripts. An example:
I use the Satimage Scripting Additions to do regular expression searches on text.
http://www.satimage.fr/software/en/smil … yntax.html
My script lines now look like this in Mojave:
set myResult to «event SATIRPLl» "(HD)" without «class CaSe» given «class by »:"", «class $in »:myResult
Anyone else having this problem after moving to Mojave?
Offline
MacOS Mojave removes all support for non-Apple scripting additions. You’ll need to find alternatives for all the Scripting Addition commands used in your scripts.
Mark Alldritt - Late Night Software Ltd.
support@latenightsw.com | mark@macscripter.net
Offline
Or disable SIP (System Integrity Protection) like I did. I use Satimage and XMLLib osaxen daily.
Apple is shooting themselves in the foot with this policy IMHO.
Last edited by billearl (2018-09-25 09:46:25 am)
Offline
Why continue to use a discarded tool when we have what we need to do the job?
When Satimage is active, the offending instruction reads:
Applescript:
set myResult to change "(HD)" into "" in myResult without case sensitive
We may achieve that with :
Applescript:
use AppleScript version "2.3.1"
use scripting additions
use framework "Foundation"
my changeCaseInsensitive("aaa (HD) bbb (Hd) cc", "(HD)", "")
on changeCaseInsensitive(aString, |before|, |after|)
set aString to (current application's NSString's stringWithString:aString)
set aString to (aString's stringByReplacingOccurrencesOfString:|before| withString:|after| options:(current application's NSCaseInsensitiveSearch) range:{0, aString's |length|()}) as text
end changeCaseInsensitive
CAUTION, the final coercion as text is required because, without it we would get something like :
«class ocid» id «data optr000000009002250040600000»
Code borrowed to Nigel GARVEY.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) mardi 25 septembre 2018 17:51:55
Offline
Why continue to use a discarded tool when we have what we need to do the job?
Why would you accept the fact that Apple tries to make you dumber and shrink the playground for your creativity?
The playground behind the OSAX is huge compared to the limited ASObjC. Chris, the famous AppleScript engineer on the AppleScript mailing list, was very clear that ASObjC nor Scripting Libraries are a replacement for OSAXen and should never considered to be one. Because ASObjC is very dumbed down compared to OSAXen I can only agree with Chris. We don't have an replacement for OSAX'en (yet) which forces me and other users to "continue to use a discarded tool".
And if it's really for security reasons we're in big trouble, ASObjC is using similar hacks.
Offline
MacOS Mojave removes all support for non-Apple scripting additions. You’ll need to find alternatives for all the Scripting Addition commands used in your scripts.
Seriously?
System Integrity Protection sounds suspiciously like "We only want our software on these machines"
Well, I already gave the boot to my iPhone. Traded it in for a Samsung phone which I find WAY better than the iPhone.
Maybe the Mac is my next casualty.
I love Applescript, always have. But friends, it is dying...
Offline
See also this post from Shane on the LNS blog:
MOJAVE BRINGS IN BIG SECURITY CHANGES
Mark Alldritt - Late Night Software Ltd.
support@latenightsw.com | mark@macscripter.net
Offline
Offline
I've begun building a script library as a stand-in for Applescript Toolbox. For the code and info, please see:
https://macscripter.net/viewtopic.php?id=46835
Offline
Pages:: 1