• 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: Problem with simple finder script- make new file, open for access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with simple finder script- make new file, open for access


  • Subject: Re: Problem with simple finder script- make new file, open for access
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 1 Aug 2006 09:48:56 -0700

On Aug 1, 2006, at 7:19 AM, dev_sleidy wrote:

set AGATE to "22.03.2006 - Philadelphia Flyers 6 vs. New York Ranges 3"
set winningTeam to "Philadelphia Flyers"


tell application "Finder"
set MyFile to make new file at desktop with properties {name:winningTeam}
open for access file MyFile with write permission
write AGATE to file MyFile starting at eof
close access file MyFile
end tell


... fails with 'Script Editor' (AppleScript) of MacOS X 10.0.0, 10.2.0, 10.2.8, 10.3.4, and 10.4.4.

All of the above mentioned MacOS X versions - displayed errors stated:


Get rid of the tell block, and it will work.

--
ASCII stupid question, get a stupid ANSI.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Problem with simple finder script- make new file, open for access (From: dev_sleidy <email@hidden>)

  • Prev by Date: Re: Filemaker 8.5 and current record syntax
  • Next by Date: Re: Launch Services info (was "Re: Auto-Remove .DS_Store Files?")
  • Previous by thread: Re: Problem with simple finder script- make new file, open for access
  • Next by thread: Re: Launch Services info (was "Re: Auto-Remove .DS_Store Files?")
  • Index(es):
    • Date
    • Thread