Re: Do shell script: find . takes forever; throws permissions error
Re: Do shell script: find . takes forever; throws permissions error
- Subject: Re: Do shell script: find . takes forever; throws permissions error
- From: Nathan Greenstein <email@hidden>
- Date: Sat, 02 Apr 2011 12:57:45 -0700
That sounds like the problem!
So, should I put in a cd or something?
I'm sure this is obvious, but I've never tried it before...
Thanks!
--
Nathan Greenstein
email@hidden
On Sat, Apr 2, 2011 at 12:55, Matthew Smith
<email@hidden> wrote:
On 03/04/2011, at 04:19 , Nathan Greenstein wrote:
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?
Do you realise that when the current directory for "do shell script" is / and not the same directory as when you are in Terminal? That final parameter is going to search the current directory and sub-directories. When you start at the root directory it's going to search everything on the hard drive.
Matthew Smith
_______________________________________________
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