Re: Responding to events
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.