• 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
Finder bug: MS-DOS format disks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finder bug: MS-DOS format disks


  • Subject: Finder bug: MS-DOS format disks
  • From: Stephen Jonke <email@hidden>
  • Date: Sun, 17 Apr 2005 02:33:40 -0400

A bug I've just run into is that the Finder has a disk format constant, "MS-DOS format", that you can't actually use, at least not directly. For example:

  tell app "Finder"
    get every disk whose format is MS-DOS format
  end tell

That won't compile. However, this returns the constant (presuming disk 2 is in MS-DOS format, for example a USB flash drive):

   tell app "Finder"
     get format of disk 2
   end tell

Even copying and pasting the "MS-DOS format" constant returned from that into the previous script doesn't work. All the other possible "formats" do compile and work. For example, this compiles and works fine:

  tell app "Finder"
    get every disk whose format is Mac OS Extended format
  end tell

The only way I was able to achieve the same result with "MS-DOS format" was to iterate on every disk, cast the "format" to a string and then compare to that. Not a huge problem, but an irritation.

Steve

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Finder bug: MS-DOS format disks
      • From: Daniel Jalkut <email@hidden>
References: 
 >Re: iTunes: database ID equivalent for playlists? (From: has <email@hidden>)

  • Prev by Date: Fwd: Save Apple Mail attachments, RTF email & Print Script HELP
  • Next by Date: Re: iTunes: database ID equivalent for playlists?
  • Previous by thread: Re: iTunes: database ID equivalent for playlists?
  • Next by thread: Re: Finder bug: MS-DOS format disks
  • Index(es):
    • Date
    • Thread