• 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: Removing resource fork via applescript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing resource fork via applescript?


  • Subject: Re: Removing resource fork via applescript?
  • From: Stephen Jonke <email@hidden>
  • Date: Sun, 2 Jan 2005 00:04:36 -0500

Also a slight improvement to the script to avoid problems with spaces and such in names:

tell application "Finder"
try
set aFile to the selection as alias
on error
display dialog "Select a file first"
error number -128
end try


set aFile to quoted form of the POSIX path of aFile


do shell script "cat < /dev/null > " & aFile & "/..namedfork/rsrc"
end tell


Steve
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Removing resource fork via applescript? (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Removing resource fork via applescript?
  • Next by Date: Re: Removing resource fork via applescript?
  • Previous by thread: Re: Removing resource fork via applescript?
  • Next by thread: Re: Removing resource fork via applescript?
  • Index(es):
    • Date
    • Thread