• 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: Stuffit Commands and Lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stuffit Commands and Lists


  • Subject: Re: Stuffit Commands and Lists
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 21 Jun 2001 17:12:09 +1000

On 21/6/01 12:08 PM +1000, Michelle Steiner, email@hidden, wrote:

> choose folder with prompt "Please select a folder to be compressed:"
> tell application "Finder"
> set theContents to (every item of the result) as alias list
> end tell

Which will probably be fine in this case, but fail if there's only one item.
So it would probably be best to make it something like:

set theFolder to choose folder with prompt "Please select a folder to be
compressed:"
tell application "Finder"
try
set theContents to (every item of theFolder) as alias list
on error
set theContents to (every item of theFolder) as alias
end try
end tell

--
Shane Stanley, email@hidden


References: 
 >Re: Stuffit Commands and Lists (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: moving files from one volume to another?
  • Next by Date: Re: Problems using Tanaka's osax
  • Previous by thread: Re: Stuffit Commands and Lists
  • Next by thread: Re: Stuffit Commands and Lists
  • Index(es):
    • Date
    • Thread