Re: Need help writing some AppleScripts!!! Please help!
Re: Need help writing some AppleScripts!!! Please help!
- Subject: Re: Need help writing some AppleScripts!!! Please help!
- From: Jean-Baptiste Le Stang <email@hidden>
- Date: Fri, 17 May 2002 14:39:19 +0200
Number 1 : You should include error trapping in your script
Try
--here is your script
On error number x (where x is the number f your error)
-- what to do in case of error
end
Number 2 : You should try making an action folder an attach it to the
desktop folder. If someone add a file in the desktop folder you can trash it
by using the 'delete' command or 'move to trash'
Number 3 : You should unlock every file befro emptying the trash :
tell application "Finder"
set locked of every file in the trash to false
empty trash
end tell
Have a nice scripting time.
Jean-Baptiste LE STANG
>
Hi Everyone,
>
>
I don't have much experiance with AppleScript, I can do simple editiing and
>
write simple scripts but thats about it. I would greatly appreciate anyones
>
help! The scripts I am looking to make are easy I just don't have the
>
knowledge to write them. I searched all over the net for examples to help
>
me but no luck. Please help!
>
>
I need three AppleScripts written, here is what I need them to do:
>
>
1) How do I have an AppleScript automatically click a button on a dialog
>
box?? Say I get an error that I know is going to happen with a script and
>
instead of waiting for the user to select the button I want the script to
>
select it automatically! Possible?
>
>
2) I want an AppleScript to keep the desktops clean, I have three items on
>
the desktop: Macintosh HD, a printer named Accel-a-Writer 3G Pool, and an
>
alias going to the Launcher.
>
How do I write a script to delete everything on the Desktop no matter what
>
they are except these three items?
>
>
3) How do I have an AppleScript empty the trash if items are locked?
>
>
Thanks in advance for any help!! Greatly appreciated!! I really need to
>
get these to work!!
>
>
>
>
Dan Ball
>
Systems Administrator
>
--__--__--__--__--
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.