View previous topic :: View next topic |
Author |
Message |
coolcaper Newbie
Joined: 21 Jul 2006 Posts: 7
|
Posted: Thu Apr 05, 2007 6:10 pm Post subject: Accessing Folders |
|
|
Anyone know a surefire way of accessing folders stored on my server? I've tried aliases etc. but they work a couple of times after I make them but then they don't work later!! I'm talking about accessing my Movie folders which are stored on my windoze server while all the default folders point to whats stored on the Mac like 'Movies' 'Documents' etc. |
|
Back to top |
|
 |
danielfo Newbie

Joined: 01 May 2007 Posts: 9 Location: Bavaria
|
Posted: Fri May 04, 2007 1:54 am Post subject: |
|
|
hi coolcaper,
i think i have a solution for you. today i changed "Open Movie.scpt" from "QuickTime Remote" to play movies that are stored on samba or nfs shares. if the share isn't mounted the script will mount it automatically. I didn't tried any other shares yet.
i replaced...
[code:1]property the_folders : {"Desktop",...}[/code:1]
with...
[code:1]
property the_folders : {"Server", "Desktop", "Movies"}
property server_mount_name : "DATEN"
property server_mount_point : "smb://server/daten"
property server_subdir : "Filme/Spielfilme"
property server_mount_path : "" -- must be ""
tell application "Finder"
if not (exists server_mount_name) then
set mount_vol to mount volume server_mount_point
set server_mount_path to POSIX path of mount_vol
else
set server_mount_path to POSIX path of (server_mount_name & ":")
end if
end tell
if not server_mount_path = "" then set server_mount_path to server_mount_path & server_subdir
[/code:1]
and under "on find_recent_documents_with_path_extension(a_folder, path_extensions)" i replaced...
[code:1]
set the_folder to path to "cusr" from user domain
set the_folder_posix_path to POSIX path of the_folder
set doc_posix_path to quoted form of (the_folder_posix_path & a_folder)
[/code:1]
with...
[code:1]
if a_folder as string is "Server" then
set doc_posix_path to server_mount_path
else
set the_folder to path to "cusr" from user domain
set the_folder_posix_path to POSIX path of the_folder
set doc_posix_path to quoted form of (the_folder_posix_path & a_folder)
end if
[/code:1]
You have to change "server_mount_name", "server_mount_point" and "server_subdir" (the last one can be blank)
have fun! |
|
Back to top |
|
 |
coolcaper Newbie
Joined: 21 Jul 2006 Posts: 7
|
Posted: Fri May 04, 2007 11:44 am Post subject: |
|
|
Hi Danielfo and thanks for your tip...I will try it and let you know!! |
|
Back to top |
|
 |
coolcaper Newbie
Joined: 21 Jul 2006 Posts: 7
|
Posted: Wed May 09, 2007 6:06 pm Post subject: |
|
|
Danielfo, your script was the one I was looking for. Works like a charm!!
I've copied it to the VLC script and works wonderful.
Again a VERY BIG THANKYOU!!! Saved the day!!! |
|
Back to top |
|
 |
andreaccs Newbie

Joined: 12 Mar 2008 Posts: 4 Location: Ireland
|
Posted: Thu Mar 13, 2008 6:44 pm Post subject: problem... |
|
|
I modified the VLC script with your suggestion,
and i also imported the file you create (with the obvious change of server neme and folder name)
but still the drive is mounted but i'm unable to see inside the folder "Server"
anyone have an idea? |
|
Back to top |
|
 |
|