• 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: FileMaker Scripting (Text Formatting)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FileMaker Scripting (Text Formatting)


  • Subject: Re: FileMaker Scripting (Text Formatting)
  • From: "Daniel A. Shockley" <email@hidden>
  • Date: Thu, 13 Jun 2002 09:24:54 -0400

Message: 12
Date: Thu, 13 Jun 2002 09:41:06 +1000
Subject: Re: FileMaker Scripting (Text Formatting)
From: webguide <email@hidden>
To: apple <email@hidden>

G'day Daniel

> Still it
means you need a separate little applet to be running...not ideal.
Any better ideas out there?

Just sending it as an Apple Event works fine. Stick the compiled script
somewhere unobtrusive (I used the User/prefs folder) and then use the Send
Apple Event script step (with wait till completion off). Works fine for me.

Another place you can put it is in FileMaker's "FileMaker Extensions" folder. Then, you can get its path by using "path to me" within FileMaker's perform applescript, remove the application's name from the path, and add the folder's and compiled script's names to get a path to the compiled script. I've used that for complicated scripts before.

try
tell application "FileMaker Pro"
set dbName to name of database 1
set fmPath to (path to it) as string -- get FileMaker's location
end tell

-- now load YourCompiledScript, in FileMaker Extensions
if fmPath ends with ".app:" then
-- ie. FileMaker application is a bundle [as it is in OS X],
-- and thus AS looks at it as a folder
set lastItem to -3
else
set lastItem to -2
end if

set {od, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
set yourCompiledScriptPath to ((text items 1 through lastItem of fmPath) as string) & ":FileMaker Extensions:YourCompiledScript"
set AppleScript's text item delimiters to od

set yourCompiledScript to load script file emailPicturesPath
tell yourCompiledScript to doSomeCustomFunction()

on error errMsg number errNum
display dialog errMsg

end try
--
----
Daniel A. Shockley
email@hidden
email@hidden
http://www.danshockley.com
_______________________________________________
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: Re: Easy, i think, Mount Volume Question?
  • Next by Date: Re: can I do this better? [trim whitespace]
  • Previous by thread: Re: FileMaker Scripting (Text Formatting)
  • Next by thread: How to find the other url, if any?
  • Index(es):
    • Date
    • Thread