Mime-Version: |
1.0 (Apple Message framework v749.3) |
Content-Type: |
text/plain; charset=US-ASCII; delsp=yes; format=flowed |
Date: |
Sat, 6 May 2006 10:44:11 -0400 |
Reply-To: |
|
Subject: |
|
From: |
|
In-Reply-To: |
|
Content-Transfer-Encoding: |
7bit |
Sender: |
|
Parts/Attachments: |
|
|
I think that xccode by default puts in linefeeds and AppleScript
expects carriage returns
try putting \r at the end of lines.
On May 6, 2006, at 9:31 AM, SUBSCRIBE MACSCRPT Palav wrote:
> I m executing in script editor
>
> tell application "FileMaker Pro"
> open file "TIGER:TestingData.fp7" with passwords
> "admin" for Accounts "Admin"
> end tell
>
> & it is running successfully.
>
> But when I try to run above code in cocoa using NSApplescript &
> NSAppleEventDescriptor class as follows:
>
> NSAppleScript *scriptObject = [[NSAppleScript alloc] initWithSource: =
>
> @"tell application \"FileMaker Pro\" open file
> \"Tiger:TestingData.fp7\" with passwords \"admin\" for Accounts
> \"Admin\"=
> "];
> NSAppleEventDescriptor *returnDescriptor = [[NSAppleEventDescriptor
> alloc] init];
> returnDescriptor scriptObject executeAndReturnError: &errorDict];
> [scriptObject release];
>
> but when I run above code, I get descriptorType of returnDescriptor
> as kAENullEvent & thats why file doesn't get open.
>
> What can be the solution?
>
> Thanks,
> Palav
>
|
|
|