Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Re: Simple Appl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 7 Topic 1603 of 1647
Post > Topic >>

Re: Simple AppleScript Error

by Jolly Roger <jollyroger@[EMAIL PROTECTED] > Apr 26, 2008 at 12:57 AM

In article 
<301cba75-2b47-45ba-a2c0-3c725f7301da@[EMAIL PROTECTED]
>,
 Raj <rajanikanth@[EMAIL PROTECTED]
> wrote:

> Hi!
> 
> Could somebody tell me why I get this error
> 
> Finder got an error: Can't get every file of folder "Applications" of
> startup.
> 
> when I run this script:

(snip)

Try this instead:

set appFolder to POSIX file "/Applications"
tell application "Finder"
     if appFolder exists then
          return count files in folder appFolder
     else
          return 0
     end if
end tell

-- 
Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.

JR
 




 7 Posts in Topic:
Simple AppleScript Error
Raj <rajanikanth@[EMAI  2008-04-25 19:10:16 
Re: Simple AppleScript Error
Jolly Roger <jollyroge  2008-04-26 00:57:55 
Private Message
   2008-05-03 06:52:55 
Private Message
   2008-05-03 14:24:06 
Private Message
   2008-05-03 12:33:17 
Re: Simple AppleScript Error
has <has.temp3@[EMAIL   2008-04-26 03:22:37 
Re: Simple AppleScript Error
Raj <rajanikanth@[EMAI  2008-04-29 16:57:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:34:13 CDT 2008.