Re: compress with resource forks
Re: compress with resource forks
- Subject: Re: compress with resource forks
- From: John Delacour <email@hidden>
- Date: Tue, 5 Aug 2003 12:23:40 +0100
At 10:43 am +0200 5/8/03, Jean-Baptiste LE STANG wrote:
The script, is not yet finished but it works
Very nice!
tell application "Finder"
activate
set myRecord to (display dialog "Enter a name for your archive : "
default answer "")
set archiveName to text returned of myRecord
set button to button returned of myRecord
-- ...
if archiveName is not "" and button is not false then
-- ...
end if
display dialog "Archive created"
end tell
Just a word from the Verbosity Inspectorate...
button will never be false, as you will see if you run this:
set b to button returned of (display dialog "" buttons "Cancel"
default button 1)
I don't see what the Finder has to do with it either, so I'd reduce all that to
set _fname to text returned of (display dialog "
Enter a name for your archive : " default answer "")
if _fname is not "" then display dialog "
Archive created"
JD
.
_______________________________________________
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.