Re: Basic script blues ;-)
Re: Basic script blues ;-)
- Subject: Re: Basic script blues ;-)
- From: Bernard Azancot <email@hidden>
- Date: Sun, 27 Mar 2005 20:43:22 +0200
Le 27 mars 05, à 20:17, deivy petrescu a écrit :
-- 2nd script: wrong --
try
tell application "Finder"
set Folder1 to folder ("IBM 01:Users:parents:Desktop:Foo")
-- Folde1 is an alias to a folder
if not (exists folder (Folder1 & ":Folder2")) then
folder Folder1 is wrong, either take folder from the definition of
Folder1, i.e.
set Folder1 to ("IBM 01:Users:parents:Desktop:Foo")
or, change the if... then. i.e.
if not (exists folder ("" & Folder1 & ":Folder2")) then
Hope this helps!
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 ?
Whats the trick of
if not (exists folder ("" & Folder1 & ":Folder2"))
Thanks Deivy
Regards
Bernard
_______________________________________________
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