• 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: How to detect a file has resource fork, or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to detect a file has resource fork, or not?


  • Subject: Re: How to detect a file has resource fork, or not?
  • From: steve harley <email@hidden>
  • Date: Mon, 15 Mar 2004 17:15:06 -0700

on 15 Mar 2004, at 1:35 PM, Walter Ian Kaye wrote:
Amazing Unix prowess. I think my way is simpler, though. ;)

thanks but it's not prowess, just familiarity.. and i left some cruft in my last post:

set source_part to "find " & folder_path & " -maxdepth 1 -mindepth 1 -type file -print "
set munge_part to " | grep [^/]$ | xargs -I $ ls -lF $/..namedfork/rsrc"

could be

set source_part to "find " & folder_path & " -maxdepth 1 -type file -print "
set munge_part to "| xargs -I $ ls -lF $/..namedfork/rsrc"

but that was to work around wildcarding issues with Doug's listing task and bash.. for the original question, your technique is definitely simpler, and should run faster, but i was piqued by its subtle indirection -- i wanted to measure the resource fork directly.. here's another way for the archive:

set f to choose file
set res_path to quoted form of POSIX path of f & "/..namedfork/rsrc"
set byte_count_str to do shell script "perl -e 'print -s @ARGV[0]' " & res_path
_______________________________________________
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: 
 >How to detect a file has resource fork, or not? (From: Bill <email@hidden>)
 >Re: How to detect a file has resource fork, or not? (From: Doug McNutt <email@hidden>)
 >Re: How to detect a file has resource fork, or not? (From: steve harley <email@hidden>)
 >Re: How to detect a file has resource fork, or not? (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: finding newest file in a folder
  • Next by Date: Re: applescript to get system version
  • Previous by thread: Re: How to detect a file has resource fork, or not?
  • Next by thread: Re: How to detect a file has resource fork, or not?
  • Index(es):
    • Date
    • Thread