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: Doug McNutt <email@hidden>
- Date: Sat, 02 Apr 2011 12:32:31 -0600
At 11:19 -0700 4/2/11, 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!
The tilde is a shell thing and might depend on how the shell is called - with or without your appropriate rc file being executed.
Try
do shell script "find $HOME/Desktop"
And I doubt that you want the space and period which might be looking into the current directory, whatever that defaults to the way do shell script invokes the shell.
--
--> The best programming tool is a soldering iron <--
_______________________________________________
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