• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finderscript works on 10.5, but not on 10.4?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finderscript works on 10.5, but not on 10.4?


  • Subject: Re: Finderscript works on 10.5, but not on 10.4?
  • From: has <email@hidden>
  • Date: Mon, 7 Jan 2008 19:54:12 +0000

On 7 Jan 2008, at 19:39, Jacco Rens wrote:

I'm writing an AppleScript that loops for a given time, to put some load on a host for stress testing, and a small part gives an error on 10.4 about folder class could not be made.

Any insight what I might be doing wrong here?

Dunno, but here's a cleaner version of your original code to try:

tell application "Finder"
	set f to make new folder at desktop with properties {name:"Test"}
	repeat with i from 1 to 100
		make new folder at f with properties {name:"folder" & i}
		open result
	end repeat
end tell


Oh, and don't forget that the script will always error on line 2 if there's already an item named "test" on the desktop.


has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

_______________________________________________
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
References: 
 >Finderscript works on 10.5, but not on 10.4? (From: Jacco Rens <email@hidden>)

  • Prev by Date: Finderscript works on 10.5, but not on 10.4?
  • Next by Date: Re: Script doesn't work in Leopard anymore...
  • Previous by thread: Finderscript works on 10.5, but not on 10.4?
  • Next by thread: Excel Columns into Lists
  • Index(es):
    • Date
    • Thread