• 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: folder of
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: folder of


  • Subject: Re: folder of
  • From: JollyRoger <email@hidden>
  • Date: Mon, 27 Nov 2000 10:20:37 -0600

on 11/27/2000 12:12 AM, email@hidden at email@hidden wrote:

> Is anyone else having trouble with "folder of" to determine if
> a file is a folder? In the following, I get an error that says:
> "can't get folder of".

You are telling the Finder to get "folder of" when the "folder of" command
really belongs to the Standard Additions scripting addition, not the Finder.
Because you are telling it to the Finder, the Finder is trying to make sense
of it, and failing.

My advice:

This is a good example of how using tell blocks to encapsulate commands not
belonging to the "told" application can bite you. Try to avoid using tell
blocks whenever possible. A lot of times it is possible to write scripts
without ever using tell blocks. Only use tell blocks when absolutely
necessary.

JR


References: 
 >folder of (From: email@hidden)

  • Prev by Date: Re: Scripting additions & Filemaker.
  • Next by Date: Re: Posting scripts; email programs
  • Previous by thread: Re: folder of
  • Next by thread: RE: folder of
  • Index(es):
    • Date
    • Thread