Re: How to change the name of a Folder (using an Alias)
Re: How to change the name of a Folder (using an Alias)
- Subject: Re: How to change the name of a Folder (using an Alias)
- From: "Chris Banford" <email@hidden>
- Date: Thu, 25 Jan 2001 00:25:30 +0100
Hi Frank,
>
Gr|ezi :-)
Those are fightin' words here in 'Oberwallis' - but I'm only an American who
got stuck here at the foot of the Matterhorn 20 years ago.
It turns out I was on the wrong track (no surprise, after a total of two
days of A.S. scripting in my entire life!). It wasn't an 'Alias', but a
'File', and once I coerced it to an Alias, it worked. Whew!
Thanks for the tip, it made me stumble upon the real problem.
The learning ever so slowly Applescript guy,
-Chris
PS. for those of you wondering - "Gr|zi" is how Swiss German speakers from
the North say 'hi'. I live in the very south where they speak a VERY
different beast of German altogether, and 'Gr|zi' is a token from the
<hated> north. If you live in the U.S., it's like the difference between
deepest Alabama, and Boston.
------------------
Chris Banford
email@hidden
bSoftware
Zermatt Switzerland
------------------
----------
>
From: Frank Watzl <email@hidden>
>
Gr|ezi :-)
>
>
This works on my system:
>
>
--begin script
>
set f to (choose folder)
>
tell application "Finder"
>
set name of f to "krass !"
>
end tell
>
get f --> alias "dilbert:Desktop Folder:krass !:"
>
--end script
>
>
Frank Watzl
>
>
>
>
At 23:06 Uhr +0100 24.02.2001, Chris Banford wrote:
>
>--> (Sorry if this gets posted more than once - got a bit twisted up signing
>
>up to this list.) <--
>
>
>
>I'm stumped (again).
>
>
>
>I have an alias to a folder (returned when making a new folder):
>
>
>
> alias "9 gig:Jobs:Job Folder1:"
>
>
>
>What I want to do is to change the name of the folder "Job Folder1". All my
>
>attempts over the last hours have failed misserably!
>
>
>
>Thanks,
>
>
>
>-Chris