• 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: move folder & copy image ? (newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: move folder & copy image ? (newbie)


  • Subject: Re: move folder & copy image ? (newbie)
  • From: Andy Wylie <email@hidden>
  • Date: Tue, 07 Aug 2001 13:20:55 +1200

on 7/8/01 12:58 PM, Michelle Steiner at email@hidden wrote:

> On 8/6/01 5:29 PM, Mr Tea <email@hidden> wrote:
>
>> You can use 'container of' to move up a level.
>
> why do I always forget the obvious? <sigh>
>
I though that was very un Michelle like :)

set x to (path to frontmost application) as string

--------Finder
tell application "Finder" to set foldPath to (container of alias x) as
string

--------Standard Additions 'offset'
set foldPath to x's text 1 thru -(offset of ":" in "" & x's items's reverse)

--------TIDs
set AppleScript's text item delimiters to ":"
set foldPath to "" & text items 1 thru -2 of x & ":"
set AppleScript's text item delimiters to ""

--------Looney (an NG/A.Knapp hybrid %)
tell no to (alias (text of "" as string)) as string

_____________________________ Andy


  • Follow-Ups:
    • Re: move folder & copy image ? (newbie)
      • From: "T. Breheny / DiGiTAL ZEN" <email@hidden>
References: 
 >Re: move folder & copy image ? (newbie) (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: move folder & copy image ? (newbie)
  • Next by Date: "Path to" a file
  • Previous by thread: Re: move folder & copy image ? (newbie)
  • Next by thread: Re: move folder & copy image ? (newbie)
  • Index(es):
    • Date
    • Thread