Filemaker 8.5 stored applescript problem
Filemaker 8.5 stored applescript problem
- Subject: Filemaker 8.5 stored applescript problem
- From: "Timothy D. Clark" <email@hidden>
- Date: Sun, 13 May 2007 21:53:42 -0400
-----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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden