Jump to content
Server Maintenance This Week. ×

Check if a file exists, with alias over Network?


This topic is 5469 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello,

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:

iBook:/Volumes

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?

*Edit*

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
Link to comment
Share on other sites

This topic is 5469 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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