• 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: AppleScript with FileMaker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript with FileMaker


  • Subject: Re: AppleScript with FileMaker
  • From: Jim Weisbin <email@hidden>
  • Date: Mon, 25 Jun 2018 10:36:47 -0400

On Fri, 22 Jun 2018  David Crowe <email@hidden
<mailto:email@hidden>> wrote:

>
> IV. Method 4. Capture the actual AppleScript.
>
> You cannot run the calculated string in an external editor for two reasons.
> First of all, it contains escaped quote marks, strange line markers (¶) and
> FileMaker calculations. So, if you had your entire script within a FileMaker
> calculated string, how would you debug it?
>
> Well, it’s actually quite simple (although it took me a long time to think of
> it). Write a simple FileMaker script that takes an AppleScript as a
> parameter, copies it to a FileMaker field and then executes it. If you then
> want to do some debugging you just take the executed source from the
> FileMaker field and copy it into a script editor. Once you debug it you have
> to edit changes back into FileMaker watching for escaping quotes and line
> endings, but if the changes are small it’s not so bad. If you completely
> rewrite the script externally, then with an editor you need to globally
> change all straight double quotes to \” and all line endings to ¶. Again, not
> bad once you get used to it.
>
> Now all your applescripts are in your single FileMaker file, and you can even
> do things like “tell application x” where “x” is a variable (FileMaker field).

Could you please explain this in more detail? It sounds great, but I don’t
quite get how to do it.

>
>
> Then there’s the ugly question of how to get data from your AppleScript back
> into FileMaker, but that’s another story

Very often I set up a global field in FM that I can paste the Finder’s
clipboard into, then AppleScript just has to write the data to the clipboard in
a format that can be parsed by Filemaker. It’s just way easier IMHO than trying
to script FM directly from AS.

Thanks.


Jim Weisbin | C.T.O. | Human | Post Human |

Jim Weisbin | C.T.O. | Human | Post Human | 27 West 20th Street | Suite 801 |
New York, NY | 10011 |  (212) 352-0211 |  (917) 375-2272 | 2046 Broadway |
Santa Monica, CA | 90404 |  (310) 264-0211 telephone | www.humanworldwide.com
<http://www.humanworldwide.com/>
Click here <http://www.humanworldwide.com/#commercials> to view our online reel


 _______________________________________________
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

  • Follow-Ups:
    • Re: AppleScript with FileMaker
      • From: Don Rossi <email@hidden>
  • Prev by Date: Re: AppleScript script unable to respond to a script statement correctly
  • Next by Date: Re: AppleScript with FileMaker
  • Previous by thread: AppleScript with FileMaker
  • Next by thread: Re: AppleScript with FileMaker
  • Index(es):
    • Date
    • Thread