Rép: AppleWorks 6, AppleScript and prefs.
Rép: AppleWorks 6, AppleScript and prefs.
- Subject: Rép: AppleWorks 6, AppleScript and prefs.
- From: Yvan KOENIG <email@hidden>
- Date: Wed, 8 Apr 2009 11:32:56 +0200
Le 7 avr. 2009 à 22:28, Yvan KOENIG a écrit :
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
[SCRIPT]
tell application "AppleWorks 6"
activate
set oldPrefs to (get preferences)
end tell
[/SCRIPT]
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 me to get a normal
behavior.
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)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden