• 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: Pathnames and opening files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pathnames and opening files


  • Subject: Re: Pathnames and opening files
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 25 Feb 2008 12:34:04 -0700

On Feb 25, 2008, at 11:18 AM, Justin Laden wrote:

I want the user to put a file in that folder, and no matter what the
user names the file, I want my script to open it.


If you don't want to use the folder actions solution suggested by others (which you really should do), you can use this solution:

set the printsFolder to ((path to desktop as text) & "Prints") as alias
tell application "Finder" to open the first file of the printsFolder

-- Michelle

--
I'm at an age where I can satisfy my wants without too many guilt feelings.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Pathnames and opening files (From: "Justin Laden" <email@hidden>)
 >Re: Pathnames and opening files (From: "Mark J. Reed" <email@hidden>)
 >Re: Pathnames and opening files (From: "Justin Laden" <email@hidden>)

  • Prev by Date: Re: Pathnames and opening files
  • Next by Date: Re: Play sound?
  • Previous by thread: Re: Pathnames and opening files
  • Next by thread: Re: Pathnames and opening files
  • Index(es):
    • Date
    • Thread