I'm trying to understand more about that preferences file. Perhaps my applet can make use of it. I don't know. Can you point me towards documentation that would help understand what it does and can be used for ? I have Googled quite a lot but nothing seems relevant.
Post
Replies
Boosts
Views
Activity
OK, many thanks. I think I get it.
Cheers.
Many thanks for all that. It is a much more elegant solution.
As mentioned, I don't understand XML files. So, I don't know where or how to add "variables" to the wflow file. I could use System Events to add a new plist item to the file but, I don't know where in the structure to put it so that it is not overwritten by Automator when I edit and save the AppleScript.
Anyway, I tried to just shove in a new key called "variables" using a text editor. Now Automator can't open the Service at all or it just hangs and I have to force quit it. So, I clearly have no idea of what I'm doing.
As an aside, the wflow file has this section:
on run {input, parameters}
(* Your script goes here *)
return input
end run
But my AS code isn't there. It's located under "ActionParameters", "source". My AS code is in a logical place as it is run by the "Run AppleScript" action. But, what is expected to go in the "on run" section ?
Cheers.
Many thanks. I've decided to use your 2nd suggestion – only another 4 lines of code.
I've done another test: created a new applet with one dialog using the same localization files as in my original applet. French and all other languages work in that test applet. So, something is amiss in my production applet. Now for a lot of head scratching.
I've done some testing by adding another language to a copy of my applet. That new language is not visible in the "Apps" pane at all. I can't get that language to appear. But, French now does show correctly for my original applet as well as the duplicate.
I've also ended up with 7 copies of my applet in the Apps pane Application Chooser. That and the fact that French is now working even though I've not changed anything in my applet suggests the app-specific localisation in macOS is a bit wonky.
Yes, 12.3 seems to be a problem. I've tested my code in macOS 12.2.1 and had no problem. But, in 12.3, I get the -1703 error.
Yes, "do shell script" seems to be an effective workaround. I decided to use System Events instead of Finder and that works well. BTW, no need to tell current application to do a shell script in your first example. "do shell script" is in the "Scripting Additions" dictionary.
Quinn, thanks. When I clicked on "FB9958432" above, I was taken to Feedback Assistant which said "Feedback Not Found". Is that what you expect ?
Many thanks.
Sorry, should have done that. Now too late to delete this post.
Thanks. I still can't see that item anywhere in Keychain Access. Nonetheless, notarytool can see it which is the main thing.
Visibility is perhaps complicated by my arrangement: I am signed into an AppleID different to that used for my developer account. It actually makes life easier for me but might complicate some things.
Cheers.
"remove the file by reference from the project and add it back again" <== I don't understand what "remove the file by reference" means. Is it a facility in Xcode ? Is there a setting somewhere in Xcode which lists files that are "attached" to or used by a project ?
Anyway, I've moved onto to more tutorials.
Many thanks.