Hello
I don’t find where is the culprit but something plays the fool on my iMac intel inside.
When I try to run this short script
tell application "AppleWorks 6"
activate
set oldPrefs to (get preferences)
end tell
From time to time it behaves flawlessly but some times, it send an error message:
number -50
Parameter error
As ist’s not permanent, I don’t understand what is wrong.
I cleaned quite everything (with Onyx)
I trashed AppleWorks preferences file so I’m sure that the available ones are clean.
I trashed the Script Editor’s preferences to be sure to use clean ones.
And I’ running macOS X 10.5.6
I would be glad to learn which track may help to get a normal behavior.
Yvan KOENIG (from FRANCE mardi 7 avril 2009 22:22:33)
Thanks you for the ‘numerous’ responses.
Digging in the beast I found which feature was fooling the code.
I tried to grab the preferences one by one.
tell application “AppleWorks 6”
activate
tell preferences
try
get old version warning
end try
try
get locked file warning
end try
try
get paint reduction warning
end try
try
get converted file suffix
end try
try
get file extension
end try
try
get default font
end try
try
get default font size
end try
try
get remember translator
end try
end tell
end tell
and so I discovered than the ‘get default font’ returned an error.
Given that, I no longer grab the entire set but only the infos which I really need to get.
Yvan KOENIG (from FRANCE mercredi 8 avril 2009 11:30:48)
The ‘numerous’ responses probably come from the Stone Age application AppleWorks
Like knives and wheelbarrows, this ‘Stone Age’ application is always used by numerous owners which I am trying to help to jump in the iWork era
Yvan KOENIG (from FRANCE mercredi 8 avril 2009 18:56:29)