i'm looking way update .txt file on server. not sure if going on windows/mac/linux server im looking universal way log completed mounts server.
client: osx 10.6.8
after afp connection complete on applescript mounts afp share username , password input this...
edit file located here (the user have access folder read write)
server/shared/building1_loginlog.txt
locate local computer name / username logged in. script variable $user_name
log time, computer, user logged in
plan more efficiently assist clients use computers vs ones let them charge in carts.
ex.
building1_loginlog.txt
#import line document
time : computername : user
time : computername : user
time : computername : user
im not sure if run problems access file also....could there issue 30 clients trying update line in same txt file?
if alternative make .txt file on server named $time$computername$user.txt
checking out.
---
looking through forum i'm starting somewhere...
code:
tell application "textedit" activate make new document set thedate current date set computername #### ? set text of document 1 thedate & "_" & user_name of resultlist & "_" & computername text save document 1 in "/server/shared/lastupdate.txt" #dont know how change file name yet end tell
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment