Re: [Flashcoders] NativeProcess On Mac

2011-07-29 Thread Karl DeSaulniers

Hi Sumeet,
Found this. Take a look.

http://www.adobe.com/devnet/air/flash/quickstart/articles/ 
interacting_with_native_process.html


Looks like it talks about integrating with XCode,
which is what I think you need for mac. But it has both mac and pc.

Also, I googled Flash NativeProcess API and XCode, there looked to  
be  a barrel full.


HTH,
Best,
Karl


On Jul 29, 2011, at 6:38 AM, Sumeet Kumar wrote:


Hi All,



I am using Nativeprocess in adobe air for a MAC desktop  
application. I need
to find the volume UUID for mac. I have found a shell script  
command which

is like this

/usr/sbin/diskutil info / | /usr/bin/awk '$0 ~ /UUID/ { print $3 }'





This command works fine on Mac Terminal. But I am not able to  
figure out how

to use this with NativeProcess API.



Any help or suggestion on this regard would be great



Regards

Sumeet Kumar





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] NativeProcess On Mac

2011-07-29 Thread Sumeet Kumar
Thanks Karl.
But I want to run shell script from adobe air and also I  am able to run
simple shell script commands from the native process API. 

The problem in the this command mentioned below is

/usr/sbin/diskutil info / | /usr/bin/awk '$0 ~ /UUID/ { print $3 }'

That it has two commands , the first one is /usr/sbin/diskutil info / and
the second one is /usr/bin/awk '$0 ~ /UUID/ { print $3 }' seprated by |

And the second command takes the ouput of first command as input. And I
don't know how to use this in adobe air native process API

Hope I am able to explain my problem in a better way now. Apologies for not
being very clear in my first email.

Thanks again.

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Friday, July 29, 2011 5:20 PM
To: Flash Coders List
Subject: Re: [Flashcoders] NativeProcess On Mac

Hi Sumeet,
Found this. Take a look.

http://www.adobe.com/devnet/air/flash/quickstart/articles/
interacting_with_native_process.html

Looks like it talks about integrating with XCode, which is what I think you
need for mac. But it has both mac and pc.

Also, I googled Flash NativeProcess API and XCode, there looked to be  a
barrel full.

HTH,
Best,
Karl


On Jul 29, 2011, at 6:38 AM, Sumeet Kumar wrote:

 Hi All,



 I am using Nativeprocess in adobe air for a MAC desktop application. I 
 need to find the volume UUID for mac. I have found a shell script 
 command which is like this

 /usr/sbin/diskutil info / | /usr/bin/awk '$0 ~ /UUID/ { print $3 }'





 This command works fine on Mac Terminal. But I am not able to figure 
 out how to use this with NativeProcess API.



 Any help or suggestion on this regard would be great



 Regards

 Sumeet Kumar





 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] NativeProcess On Mac

2011-07-29 Thread Glen Pike

Hi,

Unless you can use /usr/sbin/diskutil as your File name and pass 
the other elements of the command line as separate arguments, then you 
might have to be more creative with your approach.


1.Write a shell script that encapsulates this command and call 
that.


2.Capture the output of the first command and use Regular 
expressions to extract the UUID yourself?


Glen


On 29/07/2011 13:16, Sumeet Kumar wrote:

Thanks Karl.
But I want to run shell script from adobe air and also I  am able to run
simple shell script commands from the native process API.

The problem in the this command mentioned below is

/usr/sbin/diskutil info / | /usr/bin/awk '$0 ~ /UUID/ { print $3 }'

That it has two commands , the first one is /usr/sbin/diskutil info / and
the second one is /usr/bin/awk '$0 ~ /UUID/ { print $3 }' seprated by |

And the second command takes the ouput of first command as input. And I
don't know how to use this in adobe air native process API

Hope I am able to explain my problem in a better way now. Apologies for not
being very clear in my first email.

Thanks again.

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Friday, July 29, 2011 5:20 PM
To: Flash Coders List
Subject: Re: [Flashcoders] NativeProcess On Mac

Hi Sumeet,
Found this. Take a look.

http://www.adobe.com/devnet/air/flash/quickstart/articles/
interacting_with_native_process.html

Looks like it talks about integrating with XCode, which is what I think you
need for mac. But it has both mac and pc.

Also, I googled Flash NativeProcess API and XCode, there looked to be  a
barrel full.

HTH,
Best,
Karl


On Jul 29, 2011, at 6:38 AM, Sumeet Kumar wrote:


Hi All,



I am using Nativeprocess in adobe air for a MAC desktop application. I
need to find the volume UUID for mac. I have found a shell script
command which is like this

/usr/sbin/diskutil info / | /usr/bin/awk '$0 ~ /UUID/ { print $3 }'





This command works fine on Mac Terminal. But I am not able to figure
out how to use this with NativeProcess API.



Any help or suggestion on this regard would be great



Regards

Sumeet Kumar





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] NativeProcess On Mac

2011-07-29 Thread Karl DeSaulniers

Maybe this will put you on a good path.

http://forums.adobe.com/message/3158169

Or this..

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/ 
flash/filesystem/File.html#openWithDefaultApplication%28%29


or this...

http://www.flexpasta.com/index.php/2009/12/01/command-line-execution- 
in-air-20/


Sorry not much more help.
GL,

Karl


On Jul 29, 2011, at 7:16 AM, Sumeet Kumar wrote:


Thanks Karl.
But I want to run shell script from adobe air and also I  am able  
to run

simple shell script commands from the native process API.

The problem in the this command mentioned below is

/usr/sbin/diskutil info / | /usr/bin/awk '$0 ~ /UUID/ { print $3 }'

That it has two commands , the first one is /usr/sbin/diskutil  
info / and
the second one is /usr/bin/awk '$0 ~ /UUID/ { print $3 }'  
seprated by |


And the second command takes the ouput of first command as input.  
And I

don't know how to use this in adobe air native process API

Hope I am able to explain my problem in a better way now. Apologies  
for not

being very clear in my first email.

Thanks again.

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Friday, July 29, 2011 5:20 PM
To: Flash Coders List
Subject: Re: [Flashcoders] NativeProcess On Mac

Hi Sumeet,
Found this. Take a look.

http://www.adobe.com/devnet/air/flash/quickstart/articles/
interacting_with_native_process.html

Looks like it talks about integrating with XCode, which is what I  
think you

need for mac. But it has both mac and pc.

Also, I googled Flash NativeProcess API and XCode, there looked  
to be  a

barrel full.

HTH,
Best,
Karl


On Jul 29, 2011, at 6:38 AM, Sumeet Kumar wrote:


Hi All,



I am using Nativeprocess in adobe air for a MAC desktop  
application. I

need to find the volume UUID for mac. I have found a shell script
command which is like this

/usr/sbin/diskutil info / | /usr/bin/awk '$0 ~ /UUID/ { print $3 }'





This command works fine on Mac Terminal. But I am not able to figure
out how to use this with NativeProcess API.



Any help or suggestion on this regard would be great



Regards

Sumeet Kumar





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] NativeProcess On Mac

2011-07-29 Thread Henrik Andersson

Glen Pike skriver:

Hi,

Unless you can use /usr/sbin/diskutil as your File name and pass the
other elements of the command line as separate arguments, then you
might have to be more creative with your approach.

1. Write a shell script that encapsulates this command and call that.

2. Capture the output of the first command and use Regular expressions
to extract the UUID yourself?

Glen



I am with the second option, no need to let some other program do the 
string juggling that you can do yourself.



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders