FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Simple Syntax Problem...

 
   Mac (Home) -> Apple Scripts RSS
Related Topics:
Simple question - Dear friends, I have written a Finder scripts in this mood : tell activate set w to window of folder set x to list view options of w set visible of column id creation date column of x to false set visible..

Simple script works when run, but not in Mail.app handler - Hi, I am an beginner wannabe, but have done extensive digging to try to answer my question, so please forgive me if everyone knows it but me. When I run this script, tell set to HD:" set..

Applescript version problem - newbie - I'm a newbie with little though I'm not new to in general. I just installed Tiger OS X from a factory Apple DVD. I did just a basic install. I then installed several other programs and seems to be..

problem opening Appleworks document - Anybody able to tell me where I am going wrong in the tell activate try set to selection of front document set envelope to ..

Voice Controled Video Capture 2 Microphone Problem - I am trying to use to do a few video capture functions by voice control and I have hit a stumbling block where I don't think that I can have 2 mics open at the same time. I have the voice control part working and I can get BTV Pro to turn on..
Next:  Apple Scripts: Simplification for Text-apps  
Author Message
DonMega

External


Since: Aug 30, 2007
Posts: 2



(Msg. 1) Posted: Sun Aug 03, 2008 9:47 pm
Post subject: Simple Syntax Problem...
Archived from groups: alt>comp>lang>applescript (more info?)

....but not for me, apparently. I am trying to check a known, specific
directory for folders that contain only one directory. When those
directories are found they are to be labeled "RED" so that they can
subsequently be manually checked and deleted.

It should be simple but I obviously have my syntax all fouled up. Can
someone provide some insight into what I'm missing or doing wrong?

My code:

tell application "finder"
set checkFolder to folder "Test Directory" of folder "Desktop" of
folder "donmini" of folder "Users" of disk "MBPro"
end tell

repeat with a from 1 to length of checkFolder
If count of item a of folder "Test Directory" of folder "Desktop" of
folder "donmini" of folder "Users" of disk "MBPro" = 1
then set label index of item a of folder "Test Directory" of folder
"Desktop" of folder "donmini" of folder "Users" of disk "MBPro" to 2
end if
end repeat

Thanks in advance.

Don Fuller
Back to top
Login to vote
Michelle Steiner

External


Since: Aug 30, 2005
Posts: 804



(Msg. 2) Posted: Sun Aug 03, 2008 9:57 pm
Post subject: Re: Simple Syntax Problem... [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived
Back to top
Login to vote
Display posts from previous:   
       Mac (Home) -> Apple Scripts All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact