Re: How to detect a file has resource fork, or not?
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.