Re: Get filestructure in a variable
Re: Get filestructure in a variable
- Subject: Re: Get filestructure in a variable
- From: Jan Bultereys <email@hidden>
- Date: Mon, 23 Oct 2006 12:24:02 +0200
- Thread-topic: Get filestructure in a variable
Title: Re: Get filestructure in a variable
Hi, I will try to make it more clear:
I need a / behind every folder... Also it would be nice if it gives me the substructure back, meaning if I have
Folder 00000-10000 (with a substructure eg. NewImage) this should return me:
00000-10000/NewImage
....
Let’s say I run this: (BEL_COMMUNITY = a volume, IMAGE_SERVER2 = a folder)
set theServer to alias "BEL_COMMUNITY:IMAGE_SERVER2:"
set theFolders to list folder theServer without invisibles
This is the output:
tell current application
list folder alias "BEL_COMMUNITY:IMAGE_SERVER2:" without invisibles
{"00000-10000", "10000-20000", "50000-60000", "80000-90000", "LOGO"}
end tell
But I need {"00000-10000/", "10000-20000/", "50000-60000/", "80000-90000/", "LOGO/"}
And Idealy would be to give me this output (with substructure example NewImage)
{"00000-10000/NewImage/", "10000-20000/", "50000-60000/", "80000-90000/", "LOGO/"}
I hope it makes sense
Many thanks,jan
From: Andrew Oliver <email@hidden>
Date: Mon, 23 Oct 2006 01:52:53 -0700
To: Jan Bultereys <email@hidden>
Cc: "email@hidden" <email@hidden>
Subject: Re: Get filestructure in a variable
On Oct 23, 2006, at 1:42 AM, Jan Bultereys wrote:
Hi,
This is what I have:
property theServer : "/Volumes/BEL_COMMUNITY/IMAGE_SERVER2/"
property theFolders : {"00000-10000/", "10000-20000/", "50000-60000/", "80000-90000/", "LOGO/"}
So the structure of my folder is:
Volumes/ BEL_COMMUNITY/IMAGE_SERVER2/00000-10000/
Volumes/ BEL_COMMUNITY/IMAGE_SERVER2/10000-20000/
.....
When someone creates an additional folder I have to specify this manualy in the variable “theFolder”....
Is there a why to grab this in the folderstructure and get this back to the variable theFolder?
You mean like:
...
set theFolders to name of every folder of folder theServer
This will give you a list of the folder names in theServer.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden