Re: filemaker open url
Re: filemaker open url
- Subject: Re: filemaker open url
- From: kai <email@hidden>
- Date: Fri, 08 Aug 2003 01:36:39 +0100
on Wed, 6 Aug 2003 08:23:02 -0400, "Robert C. Jacobson"
<email@hidden> wrote:
>
At 11:54 AM -0700 8/5/03, Andrew Oliver wrote:
>
>This wont work because the Finder has no idea what to do with
>
>Filemaker Pro'cell' objects.
>
>
but it *does* work -- outside of filemaker pro. Just not when pasted
>
into the FMP script.
>
>
>To fix the problem you need to get the cellValue of the cell and open that:
>
>
>
> tell application "Filemaker Pro"
>
> set foo to cellvalue of cell "MS KB number"
>
> open location "http://support.microsoft.com/?kbod=" & foo
>
>end tell
>
>
I'm afraid that doesn't work either. i.e. -- I get the same
>
transaction error when I try to run this script in FMP.
>
>
BTW, the transaction error goes away if I don't try to use the cell
>
contents. e.g.
>
>
open location "http://www.google.com"
>
>
works fine.
Apologies for the late arrival, but the original transaction error really
has more to do with FMP3 than the other issues discussed so far.
When you execute a FileMaker Pro script, it's considered to be an implicit
user transaction. Any attempt to access the database via Apple events will
fail when another transaction is already in progress. So ironically, it's
the script running from a ScriptMaker step that's essentially preventing
itself from accessing the database.
The failure occurs on the statement <cellValue of cell "MS KB number"> (or
Robert's earlier version, <cell "MS KB number">). The script doesn't even
get as far as trying to 'open location'.
Later FMP versions (from 4 onwards, IIRC) were less pernickety - and allowed
access to data from a ScriptMaker step.
So the answer may be either to upgrade to a later version - or side-step the
issue by saving the script as an applet and then getting FileMaker to send
an 'open application' Apple event to it.
---
kai
_______________________________________________
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.