find/ change text preferences have been recoded

Something has changed. My script worked a week ago, now the coding has changed in every script.

This used to work:
my MyTextPrefs()
set “find what” of “My text preferences” to “0”
set “change to” of “My change preferences” to DollarBuy1
tell Get1 to “change text”


on MyTextPrefs()
tell application “Adobe InDesign CC 2018”
set “My text preferences” to ()
set “My change preferences” to ()
end tell
end MyTextPrefs



Now, I open my script and I see this:

my MyTextPrefs()
set «class FndW» of «class pFTP» to “0”
set «class Chgo» of «class pCxP» to DollarBuy1
tell Get1 to «event K2 ChgT»


on MyTextPrefs()
tell application “Adobe InDesign CC 2018”
set «class pFTP» to «constant senmnada»
set «class pCxP» to «constant senmnada»
end tell
end MyTextPrefs

I’m being stonewalled with this error message:
Can’t set «class pFTP» to «constant senmnada». Access not allowed.

Can someone help me out here. Why did my coding change?

Seems to be related to what is described in :

https://latenightsw.com/mojave-brings-in-big-security-changes/

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) lundi 15 octobre 2018 18:47:07

Sorry, I’m desperately trying to post this correctly. I haven’t posted in years.

Something has changed. My script worked a week ago, now the coding has changed in every script.

This used to work:

my MyTextPrefs()
    set "find what" of "My text preferences" to "0"
    set "change to" of "My change preferences" to DollarBuy1
    tell Get1 to "change text"
__________________________
on MyTextPrefs()
    tell application "Adobe InDesign CC 2018"
        set "My text preferences" to ()
        set  "My change preferences" to ()
    end tell
end MyTextPrefs


Now, I open my script and I see this:

my MyTextPrefs()
set «class FndW» of «class pFTP» to “0”
set «class Chgo» of «class pCxP» to DollarBuy1
tell Get1 to «event K2 ChgT»


on MyTextPrefs()
tell application “Adobe InDesign CC 2018”
set «class pFTP» to «constant senmnada»
set «class pCxP» to «constant senmnada»
end tell
end MyTextPrefs

I’m being stonewalled with this error message:
Can’t set «class pFTP» to «constant senmnada». Access not allowed.

Can someone help me out here. Why did my coding change?

Model: Mac Pro Mid 2010
AppleScript: 2.8.1
Browser: Safari 10.0.2
Operating System: macOS 10.11

Now that you wrote which operating system is in use, it appears that the problem is not related to Mojave.

Are you sure that the application Indesign is available on the HD from which you booted ?

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) lundi 15 octobre 2018 19:44:35

Yvan,
Yes, all my applications are on the same hard drive I boot from.

Hi. Welcome to MacScripter.

The code tags you were looking for to post AppleScript code here are [applescript] and [/applescript]. There’s a button for them just above the text window on posting pages.

The reason Yvan asked if InDesign was available on your machine is that the “chevron” codes you’re seeing are the raw codes for items defined by a scripting addition or application, probably the application InDesign in your script. You’re seeing them because your script editor is, for some reason, unable to access Adobe InDesign CC 2018’s scripting dictionary and so can’t translate the chevron codes back to the original keywords for display.

But I don’t know why your editor can’t access InDesign’s dictionary. Have you tried recompiling the script with the application open? (You may need to make some inconsequential change first, such as putting an additional space between two words.) Has the script actually stopped working?