Re: Targetting a specific Word version
Re: Targetting a specific Word version
- Subject: Re: Targetting a specific Word version
- From: Sjur Moshagen <email@hidden>
- Date: Fri, 30 May 2008 12:41:17 +0300
Den 29. mai. 2008 kl. 17.20 skrev Philip Aker:
On 08-05-29, at 06:38, email@hidden wrote:
there is a special clause that you have to use so that your script
uses the app's dictionary even while your "tell" is a calculated
one. It's something like "using application terminology" but I'm
sorry I can't remember exactly.
using terms from application "XXX"
-- doit
end using terms from
Thanks for the help. In my case, it does NOT work though:
on run
set HDname to (path to startup disk as text)
set Word2004 to HDname & "Applications:Microsoft Office
2004:Microsoft Word"
using terms from application Word2004
set MSWordVersion2004 to application version
end
display dialog "MSWord 2004 version:" & MSWordVersion2004 & return &
return & Word2004
end run
gives a compilation error:
--------
Syntax error
Can't change the data to the expected type. [or something similar - my
translation of the Norwegian error message]
--------
Any clue on what is going on, and how I can tell an application whose
name/ref is calculated?
Sjur
_______________________________________________
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