dbTalk Databases Forums  

Setting script variable in Perform applescript ?

comp.databases.filemaker comp.databases.filemaker


Discuss Setting script variable in Perform applescript ? in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vcirilli
 
Posts: n/a

Default Setting script variable in Perform applescript ? - 11-17-2005 , 07:23 PM






I'd like to set a script variable from a Perform Applescript step.

I've been working with calculated applescript
This part works ---

"tell application " & "\"" & "Filemaker Pro Advanced" & "\"¶"

& "choose file name ¶"

& "end tell"

got the path I'm looking for but stuck on the correct syntax for
setting the variable $path to the text of the result.

Thx


Reply With Quote
  #2  
Old   
FP
 
Posts: n/a

Default Re: Setting script variable in Perform applescript ? - 11-18-2005 , 01:37 AM






I think you'll have to get apple script to write the data into a global
field first then take it from there and put it into your script
variable eg.

"tell application " & "\"" & "Filemaker Pro Advanced" & "\"¶"
& "choose file name ¶"
& "set field " & "\"" & "MyResultField" & "\"" & "to the result as
text¶"
& "end tell"


Reply With Quote
  #3  
Old   
ursus.kirk
 
Posts: n/a

Default Re: Setting script variable in Perform applescript ? - 11-18-2005 , 07:03 AM



Yes, according to FM helpfile you can not use any variables for externel
function that hold a path.

Open the help file
search on using variables
open the page with this name
and scroll down the page


"FP" <ab (AT) pottnerconsulting (DOT) ca> schreef in bericht
news:1132299475.448768.213250 (AT) g43g2000cwa (DOT) googlegroups.com...
I think you'll have to get apple script to write the data into a global
field first then take it from there and put it into your script
variable eg.

"tell application " & "\"" & "Filemaker Pro Advanced" & "\"¶"
& "choose file name ¶"
& "set field " & "\"" & "MyResultField" & "\"" & "to the result as
text¶"
& "end tell"



Reply With Quote
  #4  
Old   
vcirilli
 
Posts: n/a

Default Re: Setting script variable in Perform applescript ? - 11-18-2005 , 07:02 PM



Thanks Guys,

You pointed me in the right direction.
The syntax that worked is:


"tell application " & "\"" & "Filemaker Pro Advanced" & "\"¶"
& "choose file name ¶"
&"tell layout "& "\"" & "Layout_name" & "\"¶"
&"set cell "& "\"" & "resultField" & "\"" & "of current record to the
result as text¶"
&"end tell ¶"
& "end tell"


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.