Newbie needs to find file

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Newbie needs to find file
# 8  
Old 09-14-2015
Unfortunately I have a mac at home... but since I work on true unix boxes even at home I use ksh and standard scripts with my mac... You will have to wait I leave work to see what you mean by trying to test on my macbook...
# 9  
Old 09-14-2015
I tried this and it does not work either.

set the_AVSheet to do shell script "find -AFRICA2 /volumes/DW/700Club/AVSHEET/WorldReach now CBN International/AFRICA/"

---------- Post updated at 02:21 PM ---------- Previous update was at 12:50 PM ----------

this works:

set the_AVSheet to do shell script "find '/volumes/DW/700Club/AVSHEET/WorldReach now CBN International/AFRICA' -type f -name '*Burkina*'"

---------- Post updated at 02:22 PM ---------- Previous update was at 02:21 PM ----------

anything I do to replace Burkina with the variable text_returned does not return any kind of information.
# 10  
Old 09-14-2015
what's 'text_returned'? What's its value? And you incorporate into the 'find' script?
# 11  
Old 09-14-2015
when the user runs the script, a dialog box opens so you can input the 1st part of the filename. i.e. AFRICA123. Its a variable. The path to the folder is pre-determined, you just have to find the AFRICA123 file.

the code below shows the folder path and then the 1st word of the filename for which you are searching.

set the_AVSheet to do shell script "find '/volumes/macintosh HD/Users/shawn/Desktop/Worldreach/AFRICA/' -type f -name & text_returned & " *"
# 12  
Old 09-14-2015
I'm afraid I cannot help with the Applescript - hopefully vbe will be back on this thread.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Newbie help - parsing through a file

Hello guys, I am a newbie to all of this - I'd like some help with a file I have. It's a ~100mb CSV file with approximately 30 columns. What I'd like to do is to search through the file and REMOVE any lines with a certain case insensitive string in any of the columns: So my file looks... (4 Replies)
Discussion started by: Lokhtar
4 Replies

2. Shell Programming and Scripting

wanted to find both link file and ordinary file using single find command

find . -type fl o/p is only the ordinary file. where in it wont give the link files. (2 Replies)
Discussion started by: nikhil jain
2 Replies

3. Shell Programming and Scripting

Looking for help with parsing file contents in bash [newbie]

Hi I'm just messing around with bash and trying to learn it because I have a course next semester dealing with OS design where we need to know how to use SSH client and either bash or ksh. I've never done shell scripting before. I just started today and I was wondering how parsing files... (1 Reply)
Discussion started by: mehungry
1 Replies

4. Shell Programming and Scripting

Newbie.. Find if a file exists and open, if not create the desired file..

Hey all, I'm brand new to script writing, I'm wanting to make a script that will ask for a file and then retrieve that file if it exists, and if it doesn't exist, create the file with the desired name, and I'm completely stuck.. so far.. #! bin/bash echo "Enter desired file" read "$file" if ... (5 Replies)
Discussion started by: Byrang
5 Replies

5. Shell Programming and Scripting

perl script to print file information - newbie

Hi I have a perl script that prints all the video and audio file information(playing duration). It works fine in one of my friends linux laptop. But it doesn't work in my both windows and linux. My friend told me I have to do install some module ( ppm instal ...... ) but I have no... (1 Reply)
Discussion started by: srijith
1 Replies

6. Shell Programming and Scripting

perl newbie . &&..programming newbie (question 2)

Hello everyone, I am having to do a lot of perl scripting these days and I am learning a lot. I have this problem I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files.. there is folder1\folder2\*.gz and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies

7. UNIX for Dummies Questions & Answers

UNIX newbie NEWBIE question!

Hello everyone, Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware. I hope I am not missing anything! :p (4 Replies)
Discussion started by: Hanamachi
4 Replies

8. Shell Programming and Scripting

NEWBIE: If and Find in shell script

Basically I have a shell script and i want to search the computer for a folder and if that folder exists i want to take some action. Not sure exactly how to do this most efficiently. Not very experienced....any help would be appreciated. (1 Reply)
Discussion started by: meskue
1 Replies

9. UNIX for Dummies Questions & Answers

Unix masters please help newbie on "find" command

please help me figure out how to do this I wont lie, this is for a homework problem and I have searched on google for a long time and still can't figure out what to do. here is the problem So there's a folder let's say called "bare" in it, there are 10 dirs with names from "part1" through... (2 Replies)
Discussion started by: white_raven0
2 Replies

10. UNIX for Dummies Questions & Answers

Newbie question about difference between executable file and ordinary file

Hi, I am newbie in unix and just started learning it. I want to know what is the difference between an executable file and a file (say text file). How to create executable file? What is the extension for that? How to differentiate ? How does it get executed? Thanks (1 Reply)
Discussion started by: Balaji
1 Replies
Login or Register to Ask a Question