SIGN IN
::
SPONSORS
::
ADVERTISING
::
ABOUT US
::
CONTACT US
FORUMS
TUTORIALS
MAGAZINE
STOCKYARD
VIDEOS
PODCASTS
EVENTS
SERVICES
NEWSLETTER
NEWS
BLOGS
APPLE XSAN:
Home
Xsan Forum
SAN Tutorials
SAN Forum
Applescript on San volume
COW Forums
:
Apple Xsan
VIEW ALL
•
ADD A NEW POST
•
PRINT
Respond to this post
•
Return to posts index
Applescript on San volume
by
Jan-David van Luipen
on Jul 13, 2012 at 10:32:31 am
Hi all,
For our Final Cut server mail review system I want to connect a folder action to one of the folders on our SAN volume. The script is telling the files in the folder to replace all underscores and spaces for a "-" character, using this script:
on adding folder items to this_folder after receiving these_items
repeat with theFile in these_items
tell application "Finder"
set theFileName to name of theFile
end tell
set theFileName to my replace_chars(theFileName, "_", "-")
set theFileName to my replace_chars(theFileName, " ", "-")
tell application "Finder"
set name of theFile to theFileName
end tell
display dialog theFileName
end repeat
end adding folder items to
on replace_chars(this_text, search_string, replacement_string)
set AppleScript's text item delimiters to the search_string
set the item_list to every text item of this_text
set AppleScript's text item delimiters to the replacement_string
set this_text to the item_list as string
set AppleScript's text item delimiters to ""
return this_text
end replace_chars
I've tested it local and it worked, but when I'm trying to configure it to the SAN via the Final Cut Server host it isn't working. Is the Final Cut server host the designated machine to configure the above folder action or am I missing something?
Thanks in advance,
Best regards,
Jan-David
Posts Index
Reply
Like
Current Message Thread:
Applescript on San volume
by Jan-David van Luipen on Jul 13, 2012 at 10:32:31 am
LOGIN TO REPLY
FORUMS
•
TUTORIALS
•
MAGAZINE
•
STOCKYARD
•
VIDEOS
•
PODCASTS
•
EVENTS
•
SERVICES
•
NEWSLETTER
•
NEWS
•
BLOGS
© 2013
CreativeCOW.net
All rights are reserved. -
Privacy Policy
[
Top
]