• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: words in Unicode text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: words in Unicode text (From: julifos <email@hidden>)

  • Prev by Date: Re: words in Unicode text
  • Next by Date: help converting URL to alias for OmniGraffle
  • Previous by thread: Re: words in Unicode text
  • Next by thread: Re: words in Unicode text
  • Index(es):
    • Date
    • Thread