Hello,
I have found this script and translated the different messages in french. When runned from the Script Editor it runs perfectly. When runned from the Finder, when I want to give a name to my memo, any key I press is inoperant. I then click OK and pass to the second window, make my category choice and press OK again.
What could be causing this freeze of my keyboard in the first message window ???
Thanks in advance.
Robert Lespérance
This is the script:
set selectedText to do shell script “pbpaste”
display dialog ¬
"Nom de votre mémo: " default answer “” default button “OK”
set titleText to text returned of result
tell application “Palm Desktop”
set memoCategories to {}
repeat with thisCategory in categories
set memoCategories to memoCategories & {(name of thisCategory)}
end repeat
end tell
set categoryChosen to choose from list memoCategories with prompt “Attribuez une catégorie au mémo …”
if categoryChosen is not false then
set memoCategory to item 1 of categoryChosen
else
set memoCategory to “”
end if
set confirmationMessage to "Confirmation de votre mémo …
Titre: " & titleText & "
Catégorie: " & memoCategory & "
Corps: " & selectedText
display dialog the confirmationMessage ¬
buttons {“Canceller”, “Ajouter à PalmDesktop”} ¬
default button 2 with icon 1 giving up after 20
set userChoice to the button returned of the result
if userChoice is “Ajouter à PalmDesktop” then
tell application “Palm Desktop”
activate
try
make new memo with properties ¬
{title:titleText, contents:selectedText, primary category:(category memoCategory)}
on error msg
display dialog msg
end try
end tell
end if
Model: iMac G5 1.6 MHZ - 2GB
AppleScript: 1.10.7
Browser: Safari 419.3
Operating System: Mac OS X (10.4)