[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] MacPerl->Applescript



mac-perl@iis.ee.ethz.ch
Subj:	Re: [MacPerl] MacPerl->Applescript

Shyam Hegde wrote:

!Thanks for such a quick response.  The option above sounds like a good
!quick fix - I'm not that profficient in AppleScript and I was hoping you
!might be able to give me some pointers in how to do this.  From the little
!I understand about AppleScript, I must use a list data structure in the
!form of {"a","b","c","d"}
!
!This would mean that MacPerl would have to write variables into a string in
!the format above.  I tried to implement this using the construct:
!
!	$myreply = qq({"$var1","$var2","$var3","$var4"});
!
!But MacPerl seems to escape these characters when passing back to
!AppleScript with "\"??
!
!If you have any ideas then they are greatly appreciated.

Depending on whether or not you want $var1 et al interpolated you could
try one of these:

	$myreply = "{\"\$var1\",\"\$var2\",\"\$var3\",\"\$var4\"}";

	$myreply = "{\"$var1\",\"$var2\",\"$var3\",\"$var4\"}";

	$myreply = q({"$var1","$var2","$var3","$var4"});

Peter Prymmer


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch