• 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: Emmanuel <email@hidden>
  • Date: Tue, 1 Aug 2006 03:45:58 +0200

At 6:52 PM -0400 7/31/06, Dan Doughtie wrote:
    set MyFile to make new file at desktop with properties
{name:DoStoryName(winningTeam) of me}
    open for access file MyFile with write permission
    write AGATE to file MyFile starting at eof
    close access file MyFile
[...]
Is this related to a desktop reference bug?

Sorry to tell you so, Dan, but unless I'm missing something your syntax was flawed in the first place, it's just that AppleScript is getting more strict.


MyFile is a reference to a file, under a form which is specific to Finder.

You can coerce it into a type that other commands, such as "open for access" (which does not belong to Finder, as Michelle told you), will be able to use: that's with "as":

set aCorrectAlias to MyFile as alias

(you can also do: MyFile as file specification, but don't do it)

But "file MyFile" is officially not a way of making the Finder's descriptor into a file specification. We can only be sorry that it looked like it worked so far.

Emmanuel
_______________________________________________
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: 
 >Problem with simple finder script- make new file, open for access (From: Dan Doughtie <email@hidden>)

  • Prev by Date: Re: Filemaker 8.5 and current record syntax
  • Next by Date: Converting images from one format to another
  • Previous by thread: Re: Problem with simple finder script- make new file, open for access
  • Next by thread: Converting images from one format to another
  • Index(es):
    • Date
    • Thread