Hi, I’m having trouble with what should be rather staightforward. I’m running Outlook in Classic, and want to create an email with the name of the selected file in the Finder as the subject, thusly:
tell application "Finder"
set theSelection to selection
set myName to (name of item 1 of theSelection as string)
tell application "Microsoft Outlook"
activate
CreateMail Subject myName
end tell
end tell
Ignoring the usual complaints from Outlook about missing parameters, this works fine if you sustitute an actual string (e.g.: set myName to “Hello”). I’ve tried “as text” and “as unicode text” with no improvement.
Any ideas?