• 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: Simple question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple question


  • Subject: Re: Simple question
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 24 Jan 2003 08:51:31 -0800

On 1/24/03 7:35 AM, "email@hidden" <email@hidden>
wrote:

> Grant-
>
> There are shorter ways to do this, but this is an easy way to see it...
>
> -- BEGIN: Open file chosen by user
> tell application "Finder"
> activate
> set chosenfile to choose file
> open chosenfile
> end tell
> -- END: Open file chosn by user

Why are you putting it in the Finder? And 'choose file' doesn't open the
file, it just chooses it for doing whatever you want to do with it next in
the script. The shorter way to do it, as others have already said, is simply

choose file

If you want to do something with it, presumably, then

set theFile to (choose file)

--
Paul Berkowitz
_______________________________________________
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.

  • Prev by Date: Re: alms for an ex-leper
  • Next by Date: Re: PS7, Resizing according to image orientation
  • Previous by thread: Re: Simple question
  • Next by thread: Quark 5. Make new page
  • Index(es):
    • Date
    • Thread