• 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: Coercing from alias to original
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coercing from alias to original


  • Subject: Re: Coercing from alias to original
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 25 Apr 2004 14:20:10 -0700

On 4/25/04 2:04 PM, "Adam K. Wuellner" <email@hidden> wrote:

> On Apr 25, 2004, at 3:19 PM, Michael Vogt wrote:
>> I'm wanting to count the number of items within folder f, but count
>> just sees the alias, and returns a value of 1.
>> How do I coerce the alias so that count can look at the actual folder
>> and figure out how much is inside?
>>

> I think you need to count whatever 'f' contains, not 'f' itself:
>
> tell application "Finder"
> set folder_contents to every item of f
> count f
> end tell

In that case, don't you mean to say

tell application "Finder"
set folder_contents to every item of f
count folder_contents
end tell

--
Paul Berkowitz

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


  • Follow-Ups:
    • Re: Coercing from alias to original
      • From: "Adam K. Wuellner" <email@hidden>
References: 
 >Re: Coercing from alias to original (From: "Adam K. Wuellner" <email@hidden>)

  • Prev by Date: Re: Coercing from alias to original
  • Next by Date: Re: Coercing from alias to original
  • Previous by thread: Re: Coercing from alias to original
  • Next by thread: Re: Coercing from alias to original
  • Index(es):
    • Date
    • Thread