Re: Problem with applescript in FMP
Re: Problem with applescript in FMP
- Subject: Re: Problem with applescript in FMP
- From: Andrew Oliver <email@hidden>
- Date: Mon, 22 Mar 2004 09:14:39 -0800
Your problem is much bigger than adding 'as text' to the command.
The problem is that your script relied on a scripting addition ('OSAX')
under Mac OS 9.x, but you don't have that installed under Mac OS X, hence
the raw event code <<event oliehtml>>.
According to ScriptBuilders (
http://www.osaxen.com/index.php?table=commands&id=oliehtml ) the command
comes from the 'convert clipboard to html' OSAX, last updated in 1997.
Unfortunately there doesn't appear to be a Mac OS X version of this OSAX.
You'll have to find some other way of generating HTML from the clipboard
contents. IIRC TexEdit Plus has something in that area.
Andrew
:)
On 3/22/04 8:36 AM, "Simon Manning" <email@hidden> wrote:
>
Hi All,
>
>
Can anyone spot a problem with this script - having hardly touched
>
appescript before I am at a loss - as you can see this has been sent to an
>
FMP list and an Applescript list just in case :)
>
>
This was on OS9 but now runs on OS X (or doesnt run)
>
>
-----------------------------------------------------------
>
set the_HTML to convert the clipboard to html with returns as line breaks
>
tell application "FileMaker 6"
>
activate
>
set cell "Italic 50wd blurb" of current record to (the_HTML as
>
string)
>
end tell
>
-----------------------------------------------------------
>
>
I get the error:
>
>
<<script>> doesn't understand the <<event oliehtml>> message (Error -1708)
>
>
I have had a problem with one script already (no value being copied onto
>
clipboard) and it was a case of putting "as text" on the end of a line.
>
Hopefully this is a similar problem.
>
>
Best regards,
>
>
Simon Manning
>
Systems Developer
>
Information Management
>
Cambridge University Press
>
University Printing House
>
Cambridge CB2 2RU
>
Tel: + 44 (0)1223 325132 (direct)
>
Email: email@hidden
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.