Re: Basic script blues ;-)
Re: Basic script blues ;-)
- Subject: Re: Basic script blues ;-)
- From: deivy petrescu <email@hidden>
- Date: Sun, 27 Mar 2005 17:09:14 -0500
On Mar 27, 2005, at 13:43, Bernard Azancot wrote:
Le 27 mars 05, à 20:17, deivy petrescu a écrit :
OK.
Works fine with
set Folder1 to ("IBM 01:Users:parents:Desktop:Foo").
Why is the
Folder1 to folder ("IBM 01:Users:parents:Desktop:Foo")
considered as an alias to a folder ?
You are right to ask and Kai is right to pull my ears.
It is Easter and I did not want to write that
folder Folder1 is a pleonasm...
People have aversion to pleonasms during Easter... :)
What I wanted to say is that, when you set folder1 to folder something
whatever folder1 is, it is already a folder.
In this case, because you explicitly use the word "folder", folder1 is
a Finder item that points to a folder.
When I was writing I did not want to use the word "points" and used
"alias" instead. But an alias is a reference with with some extra
properties.
Whats the trick of
if not (exists folder ("" & Folder1 & ":Folder2"))
I am sorry here too. I thought you knew about this kind concatenation
& coercion.
But reading it again, I realized that you got it right but not using
the canonic form:
set Folder1 to ("IBM 01:Users:parents:Desktop:Foo:") --> colon at the
end since it is a folder not a file.
The trick is supposed to be:
if not (exists folder ("" & Folder1 & "Folder2")) --> no colon before
"Folder2"
Actually, I did not intend to write a clear and didactic answer, just a
fast reply since I thought you did not see the errors.
I'll be more careful next time.
Thanks Deivy
Regards
Bernard
deivy
--------------------------------------------
Agora quem da bola é o Santos,
Salve o novo campeão!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden