Re: move folder & copy image ? (newbie)
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