Another piece of code that doesn work anymore in El Cap. In Script Editor: If i add -“save in path as osas”- (but it isnt needed) the script saves as expected, but no more when i add “save in path as APPL”.
Some thoughts ? as i couldnt code anymore without iScripts (see signature link), which is a Script editor assitant.
In there, it is needed by 2 or 3 handlers.
set scr_ed to "Script Editor"
#set pt to ((path to desktop folder as text) & "Test.scpt" as text)
set pt to ((path to desktop folder as text) & "Test.app" as text)
tell application scr_ed
tell document 2
save in pt as "APPL"
If you look in Script Editor’s dictionary, the entry for the as parameter says:
I’m always puzzled when users invent the syntax without looking at the official document available on their machine.
Maybe, save as osas works but it’s not the official syntax so it may be broken one day.
Blackholes in AppleScript support are sufficiently numerous so, please don’t invent non existing ones.
Even with years of practice, looking in the dictionaries is useful, at least to check that our memory is not fooling us.
Yvan KOENIG running El Capitan 10.11.2 in French (VALLAURIS, France) lundi 21 dÃ©cembre 2015 10:17:48