FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Accessing Folders

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac
View previous topic :: View next topic  
Author Message
coolcaper
Newbie


Joined: 21 Jul 2006
Posts: 7

PostPosted: Thu Apr 05, 2007 6:10 pm    Post subject: Accessing Folders Reply with quote

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
View user's profile Send private message
danielfo
Newbie


Joined: 01 May 2007
Posts: 9
Location: Bavaria

PostPosted: Fri May 04, 2007 1:54 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
coolcaper
Newbie


Joined: 21 Jul 2006
Posts: 7

PostPosted: Fri May 04, 2007 11:44 am    Post subject: Reply with quote

Hi Danielfo and thanks for your tip...I will try it and let you know!!
Back to top
View user's profile Send private message
coolcaper
Newbie


Joined: 21 Jul 2006
Posts: 7

PostPosted: Wed May 09, 2007 6:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
andreaccs
Newbie


Joined: 12 Mar 2008
Posts: 4
Location: Ireland

PostPosted: Thu Mar 13, 2008 6:44 pm    Post subject: problem... Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group