• 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
Another tedious newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another tedious newbie question


  • Subject: Another tedious newbie question
  • From: Christopher Coulon <email@hidden>
  • Date: Mon, 08 Apr 2002 15:54:50 -0700

Sorry for the simple question, but I did spend some time unsuccessfully
trying to get the answer.

I am experimenting with AppleScript Studio and am programming a button to
start a search for an image. I use the script:

try
someFile as alias
on error
set someFile to choose file
end try

Which essentially gives me what I want, i.e., someFile is the file selected
and its path.

My question: how do I separate the file (a tiff image) from its path? I
want to get the file's name and use the path to store results from
processing the image, so I would like one variable to contain the file's
name and another to be the path to the file's folder. However, I don't want
the user to do more than one search to get both pieces of information.

Thanks in advance,

Chris


***************************************
The GAIA Group
Global Automated Image Analysis

We welcome image analysis problems in all fields.
www.theGAIAgroup.org
Christopher Coulon, Ph.D., Founder
email@hidden
***************************************
_______________________________________________
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 tedious newbie question
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: Re: Unique Items in a text file
  • Next by Date: Re: Activating applet or app?
  • Previous by thread: Re: Activating applet or app?
  • Next by thread: Re: Another tedious newbie question
  • Index(es):
    • Date
    • Thread