Jump to content
Sign in to follow this  
Daniel N

Check if a file exists, with alias over Network?

Recommended Posts


I want to user "Perform Applescript" to check if a file exists on our Network.

I have no problem to check if a file exists locally on the computer I'm on, for example... this works for me:

alias "Macintosh HD:Users:edit:Sites:index.html"

However, when I try to do the same with a file that's on our Network I doesn't work:

alias "raid01:SYSTEM:shotsubmit:test.txt"

I only get: The file raid01:SYSTEM:shotsubmit:test.txt couldn't be found. (Got a Swedish OS, so it might not say exactly that in the English version).

The Network drive is mounted. If I go to:


In the terminal and write "ls"

It shows:

Macintosh HD raid01

(and I can navigate all the way to my file)

I have basically never used a Mac before today, do you need add something extra in your Applescript if you want to check if a file exists on a Network drive?


Figured it out. Seems that raid01 is actually in uppercase RAID01 (which is weird since neither the terminal or finder shows it as uppercase, however when I used manually added the file with Import Records it showed it in uppercase)

Edited by Guest

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

By using this site, you agree to our Terms of Use.