• 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
Test for Desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Test for Desktop


  • Subject: Test for Desktop
  • From: Brad Giesbrecht <email@hidden>
  • Date: Thu, 15 Feb 2001 13:35:08 -0800

Hello List,

How do I test if the items in a Finder selection
reside in one of my Desktop folders?

I don't care which drive it's on, I just don't
want to work with items in other directories.

else if the selected_items of the desktop folder is false then
display dialog "No Desktop items are selected." buttons {"Cancel"} default
button 1

I probably need to loop through selected_items
but really if any item, like item 1, is in any
Desktop folder, well I guess I'd be done testing.

As long as item 1 is not a mounted volume.

Is a mounted volume "in" my start up
drives Desktop folder?

I don't think so. At least, you can't see a
mounted volume in the Desktop folder of a
mounted volume.

So I need to loop out the drives first.

Now watch, one of you is going to tell me,
"Why you makeing it so hard and slow, just....."

Cheers,
Bradley Giesbrecht ;-)

PS- R23, thanks for the reply.


  • Follow-Ups:
    • Re: Test for Desktop
      • From: Mr Tea <email@hidden>
    • Re: Test for Desktop
      • From: Jolly Roger <email@hidden>
  • Prev by Date: Re: Calling an Application - Again
  • Next by Date: Help with desktop printing
  • Previous by thread: Re: OSAX correcting my script
  • Next by thread: Re: Test for Desktop
  • Index(es):
    • Date
    • Thread