• 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: How to get the number of items in a selected Folder ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the number of items in a selected Folder ?


  • Subject: Re: How to get the number of items in a selected Folder ?
  • From: Yvan KOENIG <email@hidden>
  • Date: Thu, 26 Nov 2015 16:06:19 +0100

> Le 2015/11/26 à 15:46, Thomas Fischer <email@hidden> a écrit :
>
> Hello Yvan,
>
> this may be a dumb question, but I played around with your solution and found that I cannot save it as script (on Yosemite).
> If I comment out the »use framework "Foundation"« then I can save the script, but it won't run anymore.
> How is this to be solved?
>
> Best regards
> Thomas Fischer
>
>
>
> Am 25.11.2015 um 19:49 schrieb Yvan KOENIG <email@hidden>:
>
>> I would probably use :
>>
>> use scripting additions
>> use framework "Foundation"
>> use script "BridgePlus" version "1.3"
>>
>> load framework
>> set myFolder to (choose folder) as alias
>> count (current application's SMSForder's filesIn:myFolder recursive:true asPaths:false)
>>
>>
>>
>> Yvan KOENIG running El Capitan 10.11.1 in French (VALLAURIS, France) mercredi 25 novembre 2015 19:49:05
>>

I didn’t ran it under Yosemite because I’m using El Capitan.
I have no idea explaining why you can’t save it.
Foundation isn’t a newly added framework. If my memory is right, it was already available in Mavericks.

As you are able to save the script after disabling use framework « Foundation », I guess that BridgePlus is available on your system.

Just a question. What was exactly behaving ?

Were you unable to save after compiling or were you unable to compile ?

I ask because sometimes I receive messages in which some double quotes are replaced by curly ones so compile fails.
In such case, I replace curly quotes by straight ones and it works.


Yvan KOENIG running El Capitan 10.11.1 in French (VALLAURIS, France) jeudi 26 novembre 2015 16:06:13



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >How to get the number of items in a selected Folder ? (From: "emile.a.schwarz" <email@hidden>)
 >Re: How to get the number of items in a selected Folder ? (From: "Stockly, Ed" <email@hidden>)
 >Re: How to get the number of items in a selected Folder ? (From: "Stockly, Ed" <email@hidden>)
 >Re: How to get the number of items in a selected Folder ? (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: AppleScript-Users Digest, Vol 12, Issue 583
  • Next by Date: Re: How to get the number of items in a selected Folder ?
  • Previous by thread: Re: How to get the number of items in a selected Folder ?
  • Next by thread: Re: How to get the number of items in a selected Folder ?
  • Index(es):
    • Date
    • Thread