diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/asana.php b/asana.php index 2edae31..d555a15 100644 --- a/asana.php +++ b/asana.php @@ -437,7 +437,7 @@ private function get_workspaces($apikey){ $workspaces = array(); foreach ($data as $workspace) { - $id = $workspace['id']; + $id = $workspace['gid']; $name = $workspace['name']; // // Set IDs for workspaces @@ -463,7 +463,7 @@ private function get_projects($workspaces,$apikey){ foreach ($return as $project){ $name = $project['name']; - $project_id = $project['id']; + $project_id = $project['gid']; $projects[$name] = array(); $projects[$name]['id'] = "$project_id"; diff --git a/workflows.php b/workflows.php index eb71d94..5a25360 100644 --- a/workflows.php +++ b/workflows.php @@ -38,8 +38,8 @@ function __construct() $this->bundle = basename( $this->path ); endif; - $this->cache = $this->home. "/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/".$this->bundle; - $this->data = $this->home. "/Library/Application Support/Alfred 3/Workflow Data/".$this->bundle; + $this->cache = $this->home. "/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/".$this->bundle; + $this->data = $this->home. "/Library/Application Support/Alfred/Workflow Data/".$this->bundle; if ( !file_exists( $this->cache ) ): exec("mkdir '".$this->cache."'");