Re: Thanks
Re: Thanks
- Subject: Re: Thanks
- From: Michelle Steiner <email@hidden>
- Date: Wed, 30 Jul 2003 15:20:13 -0700
On Wednesday, July 30, 2003, at 02:28 PM, Paul Moortgat wrote:
Exif is data from a picture from a digital camera. When I use
EXIF-O-Matic, I get 75 lines about almost anything the camera will spit
out. It's a plain text file.
I've given the lines a number (and a space)to make it more clear.
I only need each time these lines:1, 4, 9, 13, 19, 20, 24, 25, 26, 43,
46, 54,
55, 56, 60, 64 in another text file. (simpletext or so)
So, how much help do you need?
Opening the file to read?
extracting the lines?
saving the results to another file?
all of the above?
Assuming that it is all of the above, here is a script that should do
it. I haven't tested it, though.
--Michelle
set source_file to choose file "Choose the input file."
set destination_file to choose file name "navigate to and name the
output file."
set EXIF_Data to read source_file
set {tid, text item delimiters} to {text item delimiters, return}
set Retained_Data to paragraph 1 of foo & paragraph 4 of foo &
paragraph 9 of foo & paragraph 13 of foo & paragraph 19 of foo &
paragraphs 24 thru 26 of foo & paragraph 43 of foo & paragraphs 54 thru
56 of foo & paragraph 60 of foo & paragraph 64 of foo
set text item delimiters to tid
set destination to open for access destination_file with write
permission
write Retained_Data to destination
close destination
--
Help, I've caught a cult, and can't get out!
_______________________________________________
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.
References: | |
| >Re: Thanks (From: Paul Moortgat <email@hidden>) |