• 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: compress with resource forks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: compress with resource forks (From: Jean-Baptiste LE STANG <email@hidden>)

  • Prev by Date: Re: Getting data out of QuarkXpress (4.x)
  • Next by Date: Re: Adobe Acrobat - Extract Pages - how?
  • Previous by thread: Re: compress with resource forks
  • Next by thread: Re: $HOME/.login
  • Index(es):
    • Date
    • Thread