• 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: Responding to events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Responding to events


  • Subject: Re: Responding to events
  • From: John Delacour <email@hidden>
  • Date: Thu, 17 Apr 2003 00:28:48 +0100
  • Mac-eudora-version: 6.0a15

At 3:59 pm -0400 16/4/03, Lee Phillips wrote:

Save the script as an application and open it in ResEdit (is there a way
to edit resource forks without starting Classic yet?)....


man DeRez

This script will open a shell script in BBEdit ready for running. I've chose ResEdit as the app to look inside, since you have it. Any app with a resource fork will do.

I gave up trying to do it with do shell script. PITA.



set s to "#!/bin/sh"
set s to s & (ASCII character 10)
set s to s & "/Developer/Tools/./DeRez "
tell application "Finder"
set ResEdit to POSIX path of ("" & application file id "RSED")
set bbedit to quoted form of (get name of application file id "R*ch")
end tell
set my text item delimiters to " "
set ls to text items of ResEdit
set my text item delimiters to "\\ "
set ResEdit to ls as string

set fU to "/tmp/derez.sh"
set f to POSIX file fU
set s to s & ResEdit & " -only \"LDEF\""

open for access f with write permission
set eof f to 0
write s to f
close access f
do shell script "
chmod 755 " & fU & " ; cd /tmp ; open -a " & bbedit & " derez.sh"
_______________________________________________
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: 
 >Responding to events (From: Lee Phillips <email@hidden>)
 >Re: Responding to events (From: Joshua See <email@hidden>)
 >Re: Responding to events (From: Lee Phillips <email@hidden>)

  • Prev by Date: RE: FileMaker ... setting fields via AppleScript without
  • Next by Date: Re: Stay Popup script doewsn't work on this Mac
  • Previous by thread: Re: Responding to events
  • Next by thread: Re: Responding to events
  • Index(es):
    • Date
    • Thread