Re: Filemaker 8.5 stored applescript problem
Re: Filemaker 8.5 stored applescript problem
- Subject: Re: Filemaker 8.5 stored applescript problem
- From: Larry the O <email@hidden>
- Date: Mon, 14 May 2007 14:24:49 -0700
I have run into this same problem many times over the years: scripts
that run outside FMP but won't run from within. I'll be darned if I
can figure out what's going on, and I've spent considerable time
doing tests to try and isolate the problem. I've had instances so bad
that I ended running an AppleScript inside FMP that did nothing but
activate an AppleScript I compiled and stored as an app outside of FMP.
Someone here can probably come up with a real explanation for this,
but you should know this is not just a freak occurrence related to
your code.
(In fact, at one point I tried to get a FileMaker engineer on the
phone to resolve the problem and was told there was no one there that
knew anything about AppleScript!!)
Larry the O
On May 13, 2007, at 6:53 PM, Timothy D. Clark wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi-
Having trouble with a script when trying to call it from inside FMP
as a stored script. It works fine as in script editor and
ScriptDebugger. I can cut and paste it. but when FMP 8 and 8.5 tries
to compile it, it breaks. Much of the script is calculated, and it
needs to be, since its doing a date conversion.
The error is ' Expected "," but found class name* FMP shows that
variable "thePath" is the issue.
if I comment out that line, or drop in a string instead of the read,
it works fine.
Does anyone have any ideas?
Thanks in advance,
Tim
- -------------------- (begin Script) ----------------------------
(* Begin output of field Date Shell Script_A *)
global theDate
(*This section calls wget in order to retrieve the thelemic time from
the time server at lashtal.com*)
do shell script "/sw/bin/wget 'http://www.lashtal.com/thelemic_date/
date.php?output=html&linkback=0&language=pseudo-
latin&yeardisplay=medium&weekday=1&showdegrees=1&cedate=20070514002634
'
- -O /Users/tdclark/SyncDocs/Databases/Magickal\\ Diary/Temp/
thelemicdate.txt"
(* delay 2 seconds to allow shell script to execute*)
Set myDelay to 2
delay mydelay
(* read in the output of wget from the time server.*)
set thePath to "/Users/tdclark/SyncDocs/Databases/Magickal Diary/Temp/
thelemicdate.txt"
(*This is where the break Happens. the error is ' Expected "," but
found class name* FMP shows that variable "thePath" is the issue. )
set theDate to (read POSIX file thePath)
(* End output of field Date Shell Script_A *)
tell application "FileMaker Pro Advanced"
set Source to (get ID of current record of current layout of current
document )
set data of field "g_Entry_TimeTEXT" of table "timetest" of database
"timetest.fp7" to theDate
end tell
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.5.3 (Build 5003)
Charset: US-ASCII
wj8DBQFGR8E3T36ED6Wn/KIRAvsfAKCTr/9SSJBNtCO4YySfve+KP70rlgCgkbfO
hEJNTuXtfUjkoRWy/4iNZYk=
=fLKm
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40meyersound.com
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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