Re: newbie tries to define variables
Re: newbie tries to define variables
- Subject: Re: newbie tries to define variables
- From: Emmanuel <email@hidden>
- Date: Wed, 2 Oct 2002 17:44:44 +0200
What is wrong here is that if I drop these
two folders onto this applet "theName" will match "03personsnameaddress",
"recNum" will match "03personsnameaddress", "theFolder" will match
"03personsnameaddress" but "a_folder" will match "02personsnameaddress". How
do I have all these variables identify with the same folder? Also, maybe of
some importance, Mac OS 9.1 and AS 1.5.5.
on open theFolder
set old_delimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to ":"
Looks like you're not aware of what parameter is passed to open. When
you drop two folders onto the applet, "theFolder" is a list of (two)
file references. Whence the mess when you make that into a string and
then parse it.
Also, something else you may want to know: "item (nitem-1)" is "item -2".
Should help.
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.