Re: filemaker open url
Re: filemaker open url
- Subject: Re: filemaker open url
- From: John Haley <email@hidden>
- Date: Fri, 8 Aug 2003 07:54:02 -0500
Begin forwarded message:
From: John Haley <email@hidden>
Date: Thu Aug 7, 2003 9:05:19 PM US/Central
To: kai <email@hidden>
Subject: Re: filemaker open url
I can't remember if FMP 3 let you "Specify Field" in the Preform
AppleScript step, but if it does you could define a field to concoct
the whole AppleScriot:
define field AppleScript to equal
"open location ""http://support.microsoft.com?kbod=" & MS KB number &
""""
HTH
On Thursday, August 7, 2003, at 07:36 PM, kai wrote:
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.
_______________________________________________
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.