Re: words in Unicode text
Re: words in Unicode text
- Subject: Re: words in Unicode text
- From: John Stewart <email@hidden>
- Date: Sun, 16 Mar 2003 06:53:59 -0500
On Sunday, March 16, 2003, at 04:23 AM, julifos wrote:
Actually, I'm trying to retrieve the file size of a given file, and
now I
don't know if I should handle a possible error:
#############
word 6 of (do shell script "ls -l path/to/file")
#############
... Where I should ask for "word 7" (?)
JJ
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
Let the shell script do the work for you, try this -
set fp to POSIX path of (choose file)
set ss to "ls -l " & fp & " | awk '{print $5}'"
set bitecount to do shell script ss
display dialog bitecount
The above will return just the bite count field of the output of "ls -l"
John
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.