Monthly Archives: March 2013

using individual Gateways for the Two LAN on Synology NAS

Synology NAS has only one default Gateway field in the GUI for Network, hence in case you want the two lan to have its own gateways then the following will do the trick.

Control Pannel > Network > General Tab

Server Name: NAS
Default Gateway: 192.168.1.1

1. configure the LAN 1 “Manual Configuration”

IP Address 192.168.1.10
subNet Mask 255.255.255.0

2. configure the LAN 2 “Manual Configuration”

IP Address 192.168.2.10
subNet Mask 255.255.255.0
Continue reading

AppleScript: check if File is open in Numbers

a Simple Script to test if the File is already open, if not Open the File

on run
	set thisFunnelFile to (choose file of type "Numbers")
	tell application "Numbers"
		launch
		activate
		set tmpList to name of every document
		--set file_name to name of (info for alias "Macintosh HD:path:to:file.txt")
		set tmpdata to name of (info for thisFunnelFile)
		if tmpList does not contain tmpdata then
			-- set editDoc to (open thisFunnelFile) --> targetDoc contains a name reference to the opened document.
			open thisFunnelFile
			--else
			--set editDoc to thisFunnelFile
		end if
	end tell
end run