• 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: Another script to analyize, please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another script to analyize, please


  • Subject: Re: Another script to analyize, please
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 5 Dec 2003 00:20:52 -0700

On Dec 4, 2003, at 6:21 PM, Paul Berkowitz wrote:

The result is not 'string' or 'Unicode text': it's file. Your variable name
'docpath' and putting the Finder's own 'file' in front seem to indicate that
you think the result "should be" text. But it isn't - you could coerce to to
text, but why bother? Just give the variable an appropriate name so you
don't get confused, then don't stick 'file' in front of it.

But if I don't put "file" in front of it, it doesn't work; I get a stack overflow error. If I do put "file" in front of it, it does work.

Again, it looks to me as if you may
think that setting a variable 'thedoc' makes the 'open for access' command
itself return a real file : no it doesn't, it returns a file reference - an
integer. (Log it and you'll see for yourself.)

And if you notice, I used that only to close the file. I used the full result of "choose file name" when changing the file type and file creator.

Your advice runs counter to the results.

--
There's no place like 127.0.0.1
There's no place like 127.0.0.1
There's no place like 127.0.0.1
_______________________________________________
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: Another script to analyize, please
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Another script to analyize, please (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Playing a simple movie from quicktime
  • Next by Date: Re: Another script to analyize, please
  • Previous by thread: Re: Another script to analyize, please
  • Next by thread: Re: Another script to analyize, please
  • Index(es):
    • Date
    • Thread