• 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: Do shell script: find . takes forever; throws permissions error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do shell script: find . takes forever; throws permissions error


  • Subject: Re: Do shell script: find . takes forever; throws permissions error
  • From: Tommy Bollman <email@hidden>
  • Date: Sat, 02 Apr 2011 20:42:16 +0200

Hello.

Search for kdmiitem and spotlight in the archieve or at macscripter.net.
It is easy to use spotlights abilities from do shell script. -Providing that spotlight works and is
enabled for that directory.

hth

tommy
Den 2. apr. 2011 kl. 20.25 skrev André Renault:

> Hi Nathan,
>
> I believe that when you use Terminal, the shell is already logged into your account (gives the prompt). When using AppleScript, it creates a new shell that is not logged into your account.
>
> Furthermore, AppleScript takes a long time to do some stuff anyway.
>
> André
>
> On 2011-04-02, at 2:19 PM, Nathan Greenstein wrote:
>
>> Hi All,
>> When I run a script like the below from Terminal it is instant and successful.
>> find ~/Desktop .
>> Even though it returns a gazillion files, it's really fast.
>> But, when I run that from an AppleScript like below, it takes a very, very long time and eventually gives a permissions error.
>> do shell script "find ~/Desktop ."
>>
>> Can someone help me figure out what's going wrong and how to fix it?
>> Thanks!
>> --
>> Nathan Greenstein
>> email@hidden
>
> _______________________________________________
> 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

Best regards



Tommy Bollman
--------------------------------------------------------------------------------------------------
Mollison's Bureaucracy Hypothesis:
	If an idea can survive a bureaucratic review
	and be implemented it wasn't worth doing.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Do shell script: find . takes forever; throws permissions error
      • From: Nathan Greenstein <email@hidden>
References: 
 >Do shell script: find . takes forever; throws permissions error (From: Nathan Greenstein <email@hidden>)
 >Re: Do shell script: find . takes forever; throws permissions error (From: André Renault <email@hidden>)

  • Prev by Date: Re: Do shell script: find . takes forever; throws permissions error
  • Next by Date: Re: Do shell script: find . takes forever; throws permissions error
  • Previous by thread: Re: Do shell script: find . takes forever; throws permissions error
  • Next by thread: Re: Do shell script: find . takes forever; throws permissions error
  • Index(es):
    • Date
    • Thread