• 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: "cd " and "tail -f" on a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "cd " and "tail -f" on a file


  • Subject: Re: "cd " and "tail -f" on a file
  • From: Jeffrey Mattox <email@hidden>
  • Date: Mon, 17 Mar 2003 13:14:46 -0600

At 12:26 PM -0500 3/17/03, Paul Skinner wrote:
On Monday, March 17, 2003, at 11:05 AM, Todd Reid wrote:
set f to (choose file)
tell application "Finder"
set c to quoted form of POSIX path of ((container of f) as alias)
set n to name of f
if extension hidden of f then
set e to name extension of f
else
set e to ""
end if
end tell

I have a side question. Assuming that only the file name is needed (and not caring if the extension is included or not) would this be better that using the Finder (any snake pits)?

set theFile to (choose file)
set text item delimiters to ":"
set theName to (last text item of (theNewFile as string))

Jeff
_______________________________________________
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: "cd " and "tail -f" on a file
      • From: Paul Skinner <email@hidden>
References: 
 >Re: "cd " and "tail -f" on a file (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: Perl or AppleScript ?
  • Next by Date: Re: "cd " and "tail -f" on a file
  • Previous by thread: Re: "cd " and "tail -f" on a file
  • Next by thread: Re: "cd " and "tail -f" on a file
  • Index(es):
    • Date
    • Thread