• 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
Random number and filename
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Random number and filename


  • Subject: Random number and filename
  • From: email@hidden
  • Date: Tue, 26 Feb 2002 08:38:23 +0100

Dear all,

Why doesn4t this script work?

tell application "Finder"
get random number from 1000 to 3000
set x to result
set search_for_file to alias "Macintosh
HD:images_to_database:Documents:"
set myListforfile to list folder search_for_file without invisibles
repeat with myFilename in myListforfile
set myfile to alias "Macintosh HD:images_to_database:Documents:"
& myFilename
end repeat
--try
set fileName of myfile to (x & ".doc")
--end try
end tell

Best regards
Peter Mathiessen
_______________________________________________
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.

  • Follow-Ups:
    • Re: Random number and filename
      • From: Emmanuel <email@hidden>
    • Re: Random number and filename
      • From: Mr Tea <email@hidden>
    • Re: Random number and filename
      • From: Andy Wylie <email@hidden>
  • Prev by Date: Quark error -48
  • Next by Date: Re: HTML to PDF Mac OS X..
  • Previous by thread: Re: Quark error -48
  • Next by thread: Re: Random number and filename
  • Index(es):
    • Date
    • Thread