• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with applescript in FMP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Problem with applescript in FMP
  • Next by Date: Re: subtle gotcha in 10.3.3 Finder copying on networked disk
  • Previous by thread: Problem with applescript in FMP
  • Next by thread: How should I write the string
  • Index(es):
    • Date
    • Thread